status: update short status to respect --no-ahead-behind
[gitweb.git] / t / t6040-tracking-info.sh
index 8f17fd9da8ef6b54ae0a97500f2154b1c9d968b3..019022080b035d6a5e6b0caf654a3e48ab4e5e1d 100755 (executable)
@@ -146,6 +146,19 @@ test_expect_success 'status -s -b (diverged from upstream)' '
        test_i18ncmp expect actual
 '
 
+cat >expect <<\EOF
+## b1...origin/master [different]
+EOF
+
+test_expect_success 'status -s -b --no-ahead-behind (diverged from upstream)' '
+       (
+               cd test &&
+               git checkout b1 >/dev/null &&
+               git status -s -b --no-ahead-behind | head -1
+       ) >actual &&
+       test_i18ncmp expect actual
+'
+
 cat >expect <<\EOF
 ## b5...brokenbase [gone]
 EOF