]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6200: adjust suppression pattern to also match "main"
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 23 Oct 2020 14:00:01 +0000 (14:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Oct 2020 15:57:41 +0000 (08:57 -0700)
In preparation to running t6200 with the default branch name set to
"main", let's adjust the only non-trivial aspect thereof. The rest will
be done via a trivial `sed` invocation.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6200-fmt-merge-msg.sh

index 7d549748ef3015aade772944603e7b8efe20137b..f3e66eaf9bfe55cfa72a97461b23965013aa3d92 100755 (executable)
@@ -556,7 +556,7 @@ test_expect_success 'merge.suppressDest configuration' '
        head -n1 full.2 >actual &&
        grep -e "Merge branch .side. into master$" actual &&
 
-       git -c merge.suppressDest="ma??er" fmt-merge-msg <.git/FETCH_HEAD >full.3 &&
+       git -c merge.suppressDest="ma?*[rn]" fmt-merge-msg <.git/FETCH_HEAD >full.3 &&
        head -n1 full.3 >actual &&
        grep -e "Merge branch .side." actual &&
        ! grep -e " into master$" actual