aboutsummaryrefslogtreecommitdiff
path: root/t/t5511-refspec.sh
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-03-07 01:11:39 -0500
committerJunio C Hamano <gitster@pobox.com>2009-03-07 12:19:28 -0800
commitabd2bde78bd994166900290434a2048e660dabed (patch)
treeda95f1db0ca4b46c4220d22da637577cc1460c95 /t/t5511-refspec.sh
parent08fbdb30438fd7087c5abe15840a22fe21094515 (diff)
downloadgit-abd2bde78bd994166900290434a2048e660dabed.tar.gz
git-abd2bde78bd994166900290434a2048e660dabed.tar.xz
Support '*' in the middle of a refspec
In order to keep the requirements strict, each * has to be a full path component, and there may only be one * per side. This requirement is enforced entirely by check_ref_format(); the matching implementation will substitute the whatever matches the * in the lhs for the * in the rhs. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5511-refspec.sh')
-rwxr-xr-xt/t5511-refspec.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5511-refspec.sh b/t/t5511-refspec.sh
index 22ba38003..c28932216 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