File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -240,18 +240,15 @@ test_expect_success 'refresh index before checking if it is up-to-date' '
240
240
241
241
test_expect_success ' choking "git rm" should not let it die with cruft' '
242
242
git reset -q --hard &&
243
+ test_when_finished "rm -f .git/index.lock && git reset -q --hard" &&
243
244
i=0 &&
244
245
while test $i -lt 12000
245
246
do
246
- echo "100644 $_z40 0 some-file-$i"
247
+ echo "100644 1234567890123456789012345678901234567890 0 some-file-$i"
247
248
i=$(( $i + 1 ))
248
249
done | git update-index --index-info &&
249
- git rm -n "some-file-*" | :;
250
- test -f .git/index.lock
251
- status=$?
252
- rm -f .git/index.lock
253
- git reset -q --hard
254
- test "$status" != 0
250
+ git rm -n "some-file-*" | : &&
251
+ test_path_is_missing .git/index.lock
255
252
'
256
253
257
254
test_expect_success ' rm removes subdirectories recursively' '
You can’t perform that action at this time.
0 commit comments