From: Pete Wyckoff Date: Tue, 15 Jan 2013 00:47:00 +0000 (-0500) Subject: git p4: verify expected refs in clone --bare test X-Git-Tag: v1.8.2-rc0~101^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=695d69989429e9268c0587e3606399fc9d6cd6fa;p=thirdparty%2Fgit.git git p4: verify expected refs in clone --bare test Make sure that the standard branches are created as expected. Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- diff --git a/t/t9800-git-p4-basic.sh b/t/t9800-git-p4-basic.sh index 8c5979647f..166e75209f 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 ) '