]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1300-config.sh
config: fix --comment formatting
[thirdparty/git.git] / t / t1300-config.sh
index ac7b02e6b07a6753bb7234bbd1158cb862231676..d5dfb45877f52961b572f4f385ab0f69347464dc 100755 (executable)
@@ -71,16 +71,17 @@ cat > expect << EOF
 [section]
        Movie = BadPhysics
        UPPERCASE = true
-       penguin = gentoo #Pygoscelis papua
-       disposition = peckish #find fish
-       foo = bar #abc
+       penguin = gentoo # Pygoscelis papua
+       disposition = peckish # find fish
+       foo = bar #abc
 [Sections]
        WhatEver = Second
 EOF
+
 test_expect_success 'append comments' '
        git config --replace-all --comment="Pygoscelis papua" section.penguin gentoo &&
        git config --comment="find fish" section.disposition peckish &&
-       git config --comment="# abc" section.foo bar &&
+       git config --comment="#abc" section.foo bar &&
        test_cmp expect .git/config
 '