diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:00 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:00 -0700 |
commit | e250c5914fd151caf228cbda6c30560c266bcfef (patch) | |
tree | 8420c1badd4b4599d859f7f6ddab8fff5cf8bf14 /t | |
parent | Merge branch 'jk/maint-pass-c-config-in-env' (diff) | |
parent | builtin/fetch.c: ignore merge config when not fetching from branch's remote (diff) | |
download | tgif-e250c5914fd151caf228cbda6c30560c266bcfef.tar.xz |
Merge branch 'bc/maint-fetch-url-only'
* bc/maint-fetch-url-only:
builtin/fetch.c: ignore merge config when not fetching from branch's remote
t/t5510: demonstrate failure to fetch when current branch has merge ref
Diffstat (limited to 't')
-rwxr-xr-x | t/t5510-fetch.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 4eb10f602f..8fbd894e7f 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -240,6 +240,12 @@ test_expect_success 'fetch with a non-applying branch.<name>.merge' ' git fetch blub ' +test_expect_success 'fetch from GIT URL with a non-applying branch.<name>.merge' ' + git update-ref -d FETCH_HEAD && + git fetch one && + git rev-parse --verify FETCH_HEAD +' + # the strange name is: a\!'b test_expect_success 'quoting of a strangely named repo' ' test_must_fail git fetch "a\\!'\''b" > result 2>&1 && |