]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t6040-tracking-info.sh
Merge branch 'ns/rebase-auto-squash'
[git.git] / t / t6040-tracking-info.sh
index 3d6db4d386a0a009892fac490818294664d188fa..664b0f805288863955d8b6389c95f0f8f542f136 100755 (executable)
@@ -69,10 +69,24 @@ test_expect_success 'status' '
                cd test &&
                git checkout b1 >/dev/null &&
                # reports nothing to commit
-               test_must_fail git status
+               test_must_fail git commit --dry-run
        ) >actual &&
        grep "have 1 and 1 different" actual
 '
 
+test_expect_success 'status when tracking lightweight tags' '
+       git checkout master &&
+       git tag light &&
+       git branch --track lighttrack light >actual &&
+       grep "set up to track" actual &&
+       git checkout lighttrack
+'
 
+test_expect_success 'status when tracking annotated tags' '
+       git checkout master &&
+       git tag -m heavy heavy &&
+       git branch --track heavytrack heavy >actual &&
+       grep "set up to track" actual &&
+       git checkout heavytrack
+'
 test_done