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>
Pete Wyckoff committed
Jan 14, 2013 at 19:47 UTC
695d69989429e9268c0587e3606399fc9d6cd6fa
1 file changed
+6
-3
t/t9800-git-p4-basic.sh
+6
-3
@@ -160,9 +160,12 @@ test_expect_success 'clone --bare should make a bare repository' '
160
test_when_finished cleanup_git &&
161
(
162
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
169
)
170
'
171