diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-20 14:30:00 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-20 14:30:00 -0700 |
commit | 8e50ada5530c6bc937c5a7c10130b2b09f1389f2 (patch) | |
tree | 09d3b7d36847ec819a261d7a285032679617e9b1 /t | |
parent | 0f64f874317a67d4d32bc10d85cf19e27ff0e43b (diff) | |
parent | 5ad6b0252b4fff02ac8516b2ea5e3e7330dcc76f (diff) | |
download | git-8e50ada5530c6bc937c5a7c10130b2b09f1389f2.tar.gz |
Merge branch 'xx/db-refspec-vs-js-remote'
* xx/db-refspec-vs-js-remote:
Support '*' in the middle of a refspec
Keep '*' in pattern refspecs
Use the matching function to generate the match results
Use a single function to match names against patterns
Make clone parse the default refspec with the normal code
Diffstat (limited to 't')
-rwxr-xr-x | t/t5511-refspec.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5511-refspec.sh b/t/t5511-refspec.sh index 22ba380034..c28932216b 100755 --- a/t/t5511-refspec.sh +++ b/t/t5511-refspec.sh @@ -72,4 +72,16 @@ test_refspec fetch ':refs/remotes/frotz/HEAD-to-me' test_refspec push ':refs/remotes/frotz/delete me' invalid test_refspec fetch ':refs/remotes/frotz/HEAD to me' invalid +test_refspec fetch 'refs/heads/*/for-linus:refs/remotes/mine/*-blah' invalid +test_refspec push 'refs/heads/*/for-linus:refs/remotes/mine/*-blah' invalid + +test_refspec fetch 'refs/heads*/for-linus:refs/remotes/mine/*' invalid +test_refspec push 'refs/heads*/for-linus:refs/remotes/mine/*' invalid + +test_refspec fetch 'refs/heads/*/*/for-linus:refs/remotes/mine/*' invalid +test_refspec push 'refs/heads/*/*/for-linus:refs/remotes/mine/*' invalid + +test_refspec fetch 'refs/heads/*/for-linus:refs/remotes/mine/*' +test_refspec push 'refs/heads/*/for-linus:refs/remotes/mine/*' + test_done |