| test_description='fetching via git:// using core.gitproxy' |
| test_expect_success 'setup remote repo' ' |
| test_expect_success 'setup proxy script' ' |
| write_script proxy-get-cmd "$PERL_PATH" <<-\EOF && |
| my ($cmd, $other) = split /\0/, $buf; |
| # drop absolute-path on repo name |
| write_script proxy <<-\EOF |
| echo >&2 "proxying for $*" |
| test_expect_success 'setup local repo' ' |
| git remote add fake git://example.com/remote && |
| git config core.gitproxy ./proxy |
| test_expect_success 'fetch through proxy works' ' |
| git log -1 --format=%s FETCH_HEAD >actual && |