Merge branch 'sg/t3600-nul-sha1-fix'
* sg/t3600-nul-sha1-fix: t3600: fix broken "choking git rm" test
This commit is contained in:
commit
504c1942a9
@ -240,18 +240,15 @@ test_expect_success 'refresh index before checking if it is up-to-date' '
|
|||||||
|
|
||||||
test_expect_success 'choking "git rm" should not let it die with cruft' '
|
test_expect_success 'choking "git rm" should not let it die with cruft' '
|
||||||
git reset -q --hard &&
|
git reset -q --hard &&
|
||||||
|
test_when_finished "rm -f .git/index.lock && git reset -q --hard" &&
|
||||||
i=0 &&
|
i=0 &&
|
||||||
while test $i -lt 12000
|
while test $i -lt 12000
|
||||||
do
|
do
|
||||||
echo "100644 $_z40 0 some-file-$i"
|
echo "100644 1234567890123456789012345678901234567890 0 some-file-$i"
|
||||||
i=$(( $i + 1 ))
|
i=$(( $i + 1 ))
|
||||||
done | git update-index --index-info &&
|
done | git update-index --index-info &&
|
||||||
git rm -n "some-file-*" | :;
|
git rm -n "some-file-*" | : &&
|
||||||
test -f .git/index.lock
|
test_path_is_missing .git/index.lock
|
||||||
status=$?
|
|
||||||
rm -f .git/index.lock
|
|
||||||
git reset -q --hard
|
|
||||||
test "$status" != 0
|
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'rm removes subdirectories recursively' '
|
test_expect_success 'rm removes subdirectories recursively' '
|
||||||
|
Loading…
Reference in New Issue
Block a user