diff options
author | Pete Wyckoff <pw@padd.com> | 2012-02-26 05:06:24 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-27 04:14:20 +0400 |
commit | a93d33ee7bf2f1cd41f94470e9e44e0fc9307046 (patch) | |
tree | 40346569540ff8ea216edbc0fbed2983c6207068 /t/t9809-git-p4-client-view.sh | |
parent | 07f050c9996cbda2af8d42996ebd349dcdb4c28d (diff) |
git-p4: set useClientSpec variable on initial clone
If --use-client-spec was given, set the matching configuration
variable. This is necessary to ensure that future submits
work properly.
The alternatives of requiring the user to set it, or providing
a command-line option on every submit, are error prone.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9809-git-p4-client-view.sh')
-rwxr-xr-x | t/t9809-git-p4-client-view.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t9809-git-p4-client-view.sh b/t/t9809-git-p4-client-view.sh index c9471d562d..25e01a469d 100755 --- a/t/t9809-git-p4-client-view.sh +++ b/t/t9809-git-p4-client-view.sh @@ -241,6 +241,23 @@ test_expect_success 'quotes on rhs only' ' ' # +# Submit tests +# + +# clone sets variable +test_expect_success 'clone --use-client-spec sets useClientSpec' ' + client_view "//depot/... //client/..." && + test_when_finished cleanup_git && + "$GITP4" clone --use-client-spec --dest="$git" //depot && + ( + cd "$git" && + git config --bool git-p4.useClientSpec >actual && + echo true >true && + test_cmp actual true + ) +' + +# # Rename directories to test quoting in depot-side mappings # //depot # - "dir 1" |