diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-03-05 13:12:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-05 13:12:57 -0800 |
commit | 6db0497e1a8913fdcb935fa50cc8971d64b347be (patch) | |
tree | bfc102f035b924fa5a18fe8425911affdba9867a /t | |
parent | aaa90f5f077a2b5da2bb750566bf69b330441e0c (diff) | |
parent | 33cae5428ab504e318cfac880d59e0bda58590d7 (diff) | |
download | git-6db0497e1a8913fdcb935fa50cc8971d64b347be.tar.gz |
Merge branch 'mh/deref-symref-over-helper-transport' into maint
"git fetch" over a remote-helper that cannot respond to "list"
command could not fetch from a symbolic reference e.g. HEAD.
* mh/deref-symref-over-helper-transport:
transport-helper: do not request symbolic refs to remote helpers
Diffstat (limited to 't')
-rwxr-xr-x | t/t5801-remote-helpers.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh index 2419407546..c9d3ed14c3 100755 --- a/t/t5801-remote-helpers.sh +++ b/t/t5801-remote-helpers.sh @@ -281,4 +281,28 @@ test_expect_success 'push messages' ' ) ' +test_expect_success 'fetch HEAD' ' + (cd server && + git checkout master && + echo more >>file && + git commit -a -m more + ) && + (cd local && + git fetch origin HEAD + ) && + compare_refs server HEAD local FETCH_HEAD +' + +test_expect_success 'fetch url' ' + (cd server && + git checkout master && + echo more >>file && + git commit -a -m more + ) && + (cd local && + git fetch "testgit::${PWD}/../server" + ) && + compare_refs server HEAD local FETCH_HEAD +' + test_done |