summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-01-11 23:31:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-01-12 00:35:37 (GMT)
commit43b82bd9c3a5ad597bbfc0c12a519d4053df01b8 (patch)
tree054c932ab66ba0475b07c68435ea93c5c5248203 /t
parent896a681698489e7e21891076ce932a97468ca4c6 (diff)
downloadgit-43b82bd9c3a5ad597bbfc0c12a519d4053df01b8.zip
git-43b82bd9c3a5ad597bbfc0c12a519d4053df01b8.tar.gz
git-43b82bd9c3a5ad597bbfc0c12a519d4053df01b8.tar.bz2
git-p4: only a single ... wildcard is supported
Catch the case where a ... exists at the end, and also elsehwere. Reported-by: Gary Gibbons <ggibbons@perforce.com> Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9809-git-p4-client-view.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/t9809-git-p4-client-view.sh b/t/t9809-git-p4-client-view.sh
index c9471d5..54204af 100755
--- a/t/t9809-git-p4-client-view.sh
+++ b/t/t9809-git-p4-client-view.sh
@@ -101,12 +101,18 @@ test_expect_success 'unsupported view wildcard *' '
test_must_fail "$GITP4" clone --use-client-spec --dest="$git" //depot
'
-test_expect_success 'wildcard ... only supported at end of spec' '
+test_expect_success 'wildcard ... only supported at end of spec 1' '
client_view "//depot/.../file11 //client/.../file11" &&
test_when_finished cleanup_git &&
test_must_fail "$GITP4" clone --use-client-spec --dest="$git" //depot
'
+test_expect_success 'wildcard ... only supported at end of spec 2' '
+ client_view "//depot/.../a/... //client/.../a/..." &&
+ test_when_finished cleanup_git &&
+ test_must_fail "$GITP4" clone --use-client-spec --dest="$git" //depot
+'
+
test_expect_success 'basic map' '
client_view "//depot/dir1/... //client/cli1/..." &&
files="cli1/file11 cli1/file12" &&