@@ -167,6 +167,8 @@ test_expect_success 'fsck with unsorted skipList' '
167167
168168test_expect_success ' fsck with invalid or bogus skipList input' '
169169 git -c fsck.skipList=/dev/null -c fsck.missingEmail=ignore fsck &&
170+ test_must_fail git -c fsck.skipList -c fsck.missingEmail=ignore fsck 2>err &&
171+ test_grep "unable to parse ' \' fsck.skiplist\' ' from command-line config" err &&
170172 test_must_fail git -c fsck.skipList=does-not-exist -c fsck.missingEmail=ignore fsck 2>err &&
171173 test_grep "could not open.*: does-not-exist" err &&
172174 test_must_fail git -c fsck.skipList=.git/config -c fsck.missingEmail=ignore fsck 2>err &&
@@ -213,6 +215,11 @@ test_expect_success 'fsck with exhaustive accepted skipList input (various types
213215 test_must_be_empty err
214216'
215217
218+ test_expect_success ' receive-pack with missing receive.fsck.skipList path' '
219+ test_must_fail git -c receive.fsck.skipList receive-pack dst 2>err &&
220+ test_grep "unable to parse ' \' receive.fsck.skiplist\' ' from command-line config" err
221+ '
222+
216223test_expect_success ' push with receive.fsck.skipList' '
217224 git push . $commit:refs/heads/bogus &&
218225 rm -rf dst &&
@@ -255,6 +262,9 @@ test_expect_success 'fetch with fetch.fsck.skipList' '
255262 test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec &&
256263
257264 # Invalid and/or bogus skipList input
265+ test_must_fail git --git-dir=dst/.git -c fetch.fsck.skipList fetch \
266+ "file://$(pwd)" $refspec 2>err &&
267+ test_grep "unable to parse ' \' fetch.fsck.skiplist\' ' from command-line config" err &&
258268 git --git-dir=dst/.git config fetch.fsck.skipList /dev/null &&
259269 test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec &&
260270 git --git-dir=dst/.git config fetch.fsck.skipList does-not-exist &&
0 commit comments