Merge branch 'ab/test-without-templates'
Tweak tests so that they still work when the "git init" template did not create .git/info directory. * ab/test-without-templates: tests: don't assume a .git/info for .git/info/sparse-checkout tests: don't assume a .git/info for .git/info/exclude tests: don't assume a .git/info for .git/info/refs tests: don't assume a .git/info for .git/info/attributes tests: don't assume a .git/info for .git/info/grafts tests: don't depend on template-created .git/branches t0008: don't rely on default ".git/info/exclude"
This commit is contained in:
@ -153,7 +153,7 @@ test_expect_success 'blame evil merge' '
|
||||
|
||||
test_expect_success 'blame huge graft' '
|
||||
test_when_finished "git checkout branch2" &&
|
||||
test_when_finished "rm -f .git/info/grafts" &&
|
||||
test_when_finished "rm -rf .git/info" &&
|
||||
graft= &&
|
||||
for i in 0 1 2
|
||||
do
|
||||
@ -168,6 +168,7 @@ test_expect_success 'blame huge graft' '
|
||||
graft="$graft$commit " || return 1
|
||||
done
|
||||
done &&
|
||||
mkdir .git/info &&
|
||||
printf "%s " $graft >.git/info/grafts &&
|
||||
check_count -h 00 01 1 10 1
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user