summaryrefslogtreecommitdiff
path: root/t/t9800-git-p4-basic.sh
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2013-01-15 00:47:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-15 17:46:29 (GMT)
commit695d69989429e9268c0587e3606399fc9d6cd6fa (patch)
treeac246e9f879dc997eee5f5f9d1278f9f749bcf03 /t/t9800-git-p4-basic.sh
parent55d124376f1d5d91be4376016d92a6ca6474428a (diff)
downloadgit-695d69989429e9268c0587e3606399fc9d6cd6fa.zip
git-695d69989429e9268c0587e3606399fc9d6cd6fa.tar.gz
git-695d69989429e9268c0587e3606399fc9d6cd6fa.tar.bz2
git p4: verify expected refs in clone --bare test
Make sure that the standard branches are created as expected. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9800-git-p4-basic.sh')
-rwxr-xr-xt/t9800-git-p4-basic.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/t9800-git-p4-basic.sh b/t/t9800-git-p4-basic.sh
index 8c59796..166e752 100755
--- a/t/t9800-git-p4-basic.sh
+++ b/t/t9800-git-p4-basic.sh
@@ -160,9 +160,12 @@ test_expect_success 'clone --bare should make a bare repository' '
test_when_finished cleanup_git &&
(
cd "$git" &&
- test ! -d .git &&
- bare=`git config --get core.bare` &&
- test "$bare" = true
+ test_path_is_missing .git &&
+ git config --get --bool core.bare true &&
+ git rev-parse --verify refs/remotes/p4/master &&
+ git rev-parse --verify refs/remotes/p4/HEAD &&
+ git rev-parse --verify refs/heads/master &&
+ git rev-parse --verify HEAD
)
'