]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6042-merge-rename-corner-cases.sh
t6036, t6042: use test_create_repo to keep tests independent
authorElijah Newren <newren@gmail.com>
Thu, 24 May 2018 07:04:35 +0000 (00:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 May 2018 06:09:01 +0000 (15:09 +0900)
commit2a4c19efbf8953cccc28cbf359049caff907a4e6
tree7af1954fa7c486fb1610b1079f60102b41ff9f95
parente144d126d74f5d2702870ca9423743102eec6fcd
t6036, t6042: use test_create_repo to keep tests independent

These tests used pretty strong measures to get a clean slate:
        git rm -rf . &&
        git clean -fdqx &&
        rm -rf .git &&
        git init &&
It's easier, safer (what if a previous test has a bug and accidentally
changes into a directory outside the test path?), and allows re-inspecting
test setup later if we instead just use test_create_repo to put different
tests into separate sub-repositories.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6036-recursive-corner-cases.sh
t/t6042-merge-rename-corner-cases.sh