t7004: fix embedded single-quotes
authorJeff King <peff@peff.net>
Fri, 20 Mar 2015 10:13:29 +0000 (06:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 18:35:56 +0000 (11:35 -0700)
This test uses single quotes inside the single-quoted test
snippet, which effectively makes the contents unquoted.
Since they don't need quoted anyway, this isn't a problem,
but let's switch them to double-quotes to make it more
obviously correct.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh
index 347d3bebbcdd91a5bdfa4f9c136c03753a1eab42..efb08c34961e3a023e6fefbff5545248a4b04123 100755 (executable)
@@ -1181,7 +1181,7 @@ test_expect_success \
        'message in editor has initial comment: remainder' '
        # remove commented lines from the remainder -- should be empty
        >rest.expect &&
-       sed -e 1d -e '/^#/d' <actual >rest.actual &&
+       sed -e 1d -e "/^#/d" <actual >rest.actual &&
        test_cmp rest.expect rest.actual
 '