]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tests: fix comment syntax in chainlint.sed for AIX sed
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 24 Aug 2018 15:20:13 +0000 (15:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Aug 2018 18:31:43 +0000 (11:31 -0700)
Change a comment in chainlint.sed to appease AIX sed, which would
previously print this error:

    sed:    # stash for later printing is not a recognized function

1. https://public-inbox.org/git/CAPig+cTTbU5HFMKgNyrxTp3+kcK46-Fn=4ZH6zDt1oQChAc3KA@mail.gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/chainlint.sed

index 8544df38dfc0c557120a8a250529147edbc3d2a4..dcb4b333ed20129fdee15fb3ce1841425145946f 100644 (file)
@@ -131,9 +131,8 @@ b
 b
 
 :subshell
-# bare "(" line?
+# bare "(" line? -- stash for later printing
 /^[    ]*([    ]*$/ {
-       # stash for later printing
        h
        bnextline
 }