Test tracking of non-commit upstreams
[gitweb.git] / t / t6040-tracking-info.sh
index ba9060190d31f0b57a461c114e1c856523845f78..4b89ac71f53394fafec2697301b85c2cea7e1709 100755 (executable)
@@ -66,5 +66,19 @@ test_expect_success 'status' '
        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_failure '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