3 test_description
='fetching via git:// using core.gitproxy'
6 test_expect_success
'setup remote repo' '
17 echo >&2 "proxying for $*"
18 cmd=$("$PERL_PATH" -e '
20 my $n = hex($buf) - 4;
21 read(STDIN, $buf, $n);
22 my ($cmd, $other) = split /\0/, $buf;
23 # drop absolute-path on repo name
27 echo >&2 "Running '$cmd'"
31 test_expect_success
'setup local repo' '
32 git remote add fake git://example.com/remote &&
33 git config core.gitproxy ./proxy
36 test_expect_success
'fetch through proxy works' '
39 git log -1 --format=%s FETCH_HEAD >actual &&
40 test_cmp expect actual