whitespace: fix off-by-one error in non-space-in-indent checking
[gitweb.git] / t / t4015-diff-whitespace.sh
index 9bff8f5e4bae6beb22ba31e8be03a0528e06519e..0f16bca3732f180080cfbeb759544601eac420ef 100755 (executable)
@@ -298,7 +298,7 @@ test_expect_success 'check space before tab in indent (space-before-tab: on)' '
 test_expect_success 'check spaces as indentation (indent-with-non-tab: off)' '
 
        git config core.whitespace "-indent-with-non-tab"
-       echo "                foo ();" > x &&
+       echo "        foo ();" > x &&
        git diff --check
 
 '
@@ -306,7 +306,7 @@ test_expect_success 'check spaces as indentation (indent-with-non-tab: off)' '
 test_expect_success 'check spaces as indentation (indent-with-non-tab: on)' '
 
        git config core.whitespace "indent-with-non-tab" &&
-       echo "                foo ();" > x &&
+       echo "        foo ();" > x &&
        ! git diff --check
 
 '