]> git.ipfire.org Git - thirdparty/git.git/commit
t3200: prepare for `main` being shorter than `master`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 23 Oct 2020 14:00:03 +0000 (14:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Oct 2020 15:57:41 +0000 (08:57 -0700)
commit56300ff356bfa595c7d407323db1fb4cf279e2a7
treea91e7a942e7499e3d2718c64797ab1c27341fbd8
parent97cf8d50b598105ecc383bec8fd9b8699e7ba51f
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>
t/t3200-branch.sh