]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1300-config.sh
config: allow tweaking whitespace between value and comment
[thirdparty/git.git] / t / t1300-config.sh
index d5dfb45877f52961b572f4f385ab0f69347464dc..cc050b3c201590abfdd6c5226793cfdbbecd881c 100755 (executable)
@@ -74,6 +74,8 @@ cat > expect << EOF
        penguin = gentoo # Pygoscelis papua
        disposition = peckish # find fish
        foo = bar #abc
+       spsp = value # and comment
+       htsp = value    # and comment
 [Sections]
        WhatEver = Second
 EOF
@@ -82,6 +84,10 @@ 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="and comment" section.spsp value &&
+       git config --comment="  # and comment" section.htsp value &&
+
        test_cmp expect .git/config
 '