add: error appropriately on repository with no commits
[gitweb.git] / t / t2018-checkout-branch.sh
index 6da2d4e68fac0483cebbf02f3d2bddfa09ad57fa..c5014ad9a63f2451f84db5076f902a0132d318c1 100755 (executable)
@@ -198,7 +198,7 @@ test_expect_success 'checkout -B to the current branch works' '
        test_dirty_mergeable
 '
 
-test_expect_failure 'checkout -b after clone --no-checkout does a checkout of HEAD' '
+test_expect_success 'checkout -b after clone --no-checkout does a checkout of HEAD' '
        git init src &&
        test_commit -C src a &&
        rev="$(git -C src rev-parse HEAD)" &&