t3200: prepare for `main` being shorter than `master`
In the test case adjusted by this patch, we want to cut just after the longest shown ref name. Since `main` is shorter than `master`, we need to decrease the number of characters. Since `topic` is shown, too, and since that is only one character shorter than `master`, we decrement the length by one instead of two. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Oct 23, 2020 at 14:00 UTC
56300ff356bfa595c7d407323db1fb4cf279e2a7
1 file changed
+2
-2
t/t3200-branch.sh
+2
-2
@@ -375,9 +375,9 @@ test_expect_success 'git branch --column -v should fail' '
375
test_must_fail git branch --column -v
376
'
377
378
-test_expect_success 'git branch -v with column.ui ignored' '
378
+test_expect_success PREPARE_FOR_MAIN_BRANCH 'git branch -v with column.ui ignored' '
379
git config column.ui column &&
380
- COLUMNS=80 git branch -v | cut -c -9 | sed "s/ *$//" >actual &&
380
+ COLUMNS=80 git branch -v | cut -c -8 | sed "s/ *$//" >actual &&
381
git config --unset column.ui &&
382
cat >expect <<\EOF &&
383
a/b/c