diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-05 02:07:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-05 02:07:10 +0100 |
commit | 9bbe6db85f368fc4f75cc9f6c4bfaf2269bf0068 (patch) | |
tree | d626f21e0b87a364d213d3fba26cc92d9fb5a3f6 /t/t5510-fetch.sh | |
parent | Simplify crud() in ident.c (diff) | |
parent | refactor fetch's ref matching to use refname_match() (diff) | |
download | git-9bbe6db85f368fc4f75cc9f6c4bfaf2269bf0068.tar.xz git-9bbe6db85f368fc4f75cc9f6c4bfaf2269bf0068.zip |
Merge branch 'sp/refspec-match'
* sp/refspec-match:
refactor fetch's ref matching to use refname_match()
push: use same rules as git-rev-parse to resolve refspecs
add refname_match()
push: support pushing HEAD to real branch name
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-x | t/t5510-fetch.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 35889c0a12..46a9c4d95c 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -95,6 +95,31 @@ test_expect_success 'fetch following tags' ' ' +test_expect_failure 'fetch must not resolve short tag name' ' + + cd "$D" && + + mkdir five && + cd five && + git init && + + git fetch .. anno:five + +' + +test_expect_failure 'fetch must not resolve short remote name' ' + + cd "$D" && + git-update-ref refs/remotes/six/HEAD HEAD + + mkdir six && + cd six && + git init && + + git fetch .. six:six + +' + test_expect_success 'create bundle 1' ' cd "$D" && echo >file updated again by origin && |