Skip to content

Commit 695d699

Browse files
Pete Wyckoffgitster
authored andcommitted
git p4: verify expected refs in clone --bare test
Make sure that the standard branches are created as expected. Signed-off-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 55d1243 commit 695d699

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

t/t9800-git-p4-basic.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,12 @@ test_expect_success 'clone --bare should make a bare repository' '
160160
test_when_finished cleanup_git &&
161161
(
162162
cd "$git" &&
163-
test ! -d .git &&
164-
bare=`git config --get core.bare` &&
165-
test "$bare" = true
163+
test_path_is_missing .git &&
164+
git config --get --bool core.bare true &&
165+
git rev-parse --verify refs/remotes/p4/master &&
166+
git rev-parse --verify refs/remotes/p4/HEAD &&
167+
git rev-parse --verify refs/heads/master &&
168+
git rev-parse --verify HEAD
166169
)
167170
'
168171

0 commit comments

Comments
 (0)