aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2013-01-14 19:47:01 -0500
committerJunio C Hamano <gitster@pobox.com>2013-01-15 09:46:29 -0800
commitc595956db99a728ab2247b564c8283cf5c0d84e6 (patch)
tree5eba33238d85eed1356475e18bb61150be052628 /t
parent695d69989429e9268c0587e3606399fc9d6cd6fa (diff)
downloadgit-c595956db99a728ab2247b564c8283cf5c0d84e6.tar.gz
git-c595956db99a728ab2247b564c8283cf5c0d84e6.tar.xz
git p4: clone --branch should checkout master
When using the --branch argument to "git p4 clone", one might specify a destination for p4 changes different from the default refs/remotes/p4/master. Both cases should create a master branch and checkout files. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9806-git-p4-options.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9806-git-p4-options.sh b/t/t9806-git-p4-options.sh
index 4900aef19..2ad3a3e0c 100755
--- a/t/t9806-git-p4-options.sh
+++ b/t/t9806-git-p4-options.sh
@@ -27,7 +27,7 @@ test_expect_success 'clone no --git-dir' '
test_must_fail git p4 clone --git-dir=xx //depot
'
-test_expect_failure 'clone --branch should checkout master' '
+test_expect_success 'clone --branch should checkout master' '
git p4 clone --branch=refs/remotes/p4/sb --dest="$git" //depot &&
test_when_finished cleanup_git &&
(