@@ -164,9 +164,9 @@ test_expect_success 'fsck with unsorted skipList' '
164
164
test_expect_success ' fsck with invalid or bogus skipList input' '
165
165
git -c fsck.skipList=/dev/null -c fsck.missingEmail=ignore fsck &&
166
166
test_must_fail git -c fsck.skipList=does-not-exist -c fsck.missingEmail=ignore fsck 2>err &&
167
- test_i18ngrep "Could not open skip list : does-not-exist" err &&
167
+ test_i18ngrep "could not open.* : does-not-exist" err &&
168
168
test_must_fail git -c fsck.skipList=.git/config -c fsck.missingEmail=ignore fsck 2>err &&
169
- test_i18ngrep "Invalid SHA-1 : \[core\]" err
169
+ test_i18ngrep "invalid object name : \[core\]" err
170
170
'
171
171
172
172
test_expect_success ' fsck with other accepted skipList input (comments & empty lines)' '
@@ -193,7 +193,7 @@ test_expect_success 'fsck no garbage output from comments & empty lines errors'
193
193
test_expect_success ' fsck with invalid abbreviated skipList input' '
194
194
echo $commit | test_copy_bytes 20 >SKIP.abbreviated &&
195
195
test_must_fail git -c fsck.skipList=SKIP.abbreviated fsck 2>err-abbreviated &&
196
- test_i18ngrep "^fatal: Invalid SHA-1 : " err-abbreviated
196
+ test_i18ngrep "^fatal: invalid object name : " err-abbreviated
197
197
'
198
198
199
199
test_expect_success ' fsck with exhaustive accepted skipList input (various types of comments etc.)' '
@@ -226,10 +226,10 @@ test_expect_success 'push with receive.fsck.skipList' '
226
226
test_must_fail git push --porcelain dst bogus &&
227
227
git --git-dir=dst/.git config receive.fsck.skipList does-not-exist &&
228
228
test_must_fail git push --porcelain dst bogus 2>err &&
229
- test_i18ngrep "Could not open skip list : does-not-exist" err &&
229
+ test_i18ngrep "could not open.* : does-not-exist" err &&
230
230
git --git-dir=dst/.git config receive.fsck.skipList config &&
231
231
test_must_fail git push --porcelain dst bogus 2>err &&
232
- test_i18ngrep "Invalid SHA-1 : \[core\]" err &&
232
+ test_i18ngrep "invalid object name : \[core\]" err &&
233
233
234
234
git --git-dir=dst/.git config receive.fsck.skipList SKIP &&
235
235
git push --porcelain dst bogus
@@ -255,10 +255,10 @@ test_expect_success 'fetch with fetch.fsck.skipList' '
255
255
test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec &&
256
256
git --git-dir=dst/.git config fetch.fsck.skipList does-not-exist &&
257
257
test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec 2>err &&
258
- test_i18ngrep "Could not open skip list : does-not-exist" err &&
258
+ test_i18ngrep "could not open.* : does-not-exist" err &&
259
259
git --git-dir=dst/.git config fetch.fsck.skipList dst/.git/config &&
260
260
test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec 2>err &&
261
- test_i18ngrep "Invalid SHA-1 : \[core\]" err &&
261
+ test_i18ngrep "invalid object name : \[core\]" err &&
262
262
263
263
git --git-dir=dst/.git config fetch.fsck.skipList dst/.git/SKIP &&
264
264
git --git-dir=dst/.git fetch "file://$(pwd)" $refspec
0 commit comments