]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1305: avoid comparing extensions
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 28 Oct 2019 00:58:56 +0000 (00:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 02:34:58 +0000 (11:34 +0900)
A repository using a hash other than SHA-1 will need to have an
extension in the config file.  Ignore any extensions when comparing
config files, since they don't usefully contribute to the goal of the
test.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1305-config-include.sh

index d20b4d150d42c9fd6c14eb5f36e01a442d045cee..f1e1b289f989ea94e92b1eaf2ac1009df741deb6 100755 (executable)
@@ -63,7 +63,7 @@ test_expect_success 'listing includes option and expansion' '
        test.one=1
        EOF
        git config --list >actual.full &&
-       grep -v ^core actual.full >actual &&
+       grep -v -e ^core -e ^extensions actual.full >actual &&
        test_cmp expect actual
 '