]> git.ipfire.org Git - thirdparty/git.git/commit
t1007: factor out repeated setup
authorJeff King <peff@peff.net>
Tue, 13 Sep 2016 03:23:12 +0000 (20:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Sep 2016 22:45:45 +0000 (15:45 -0700)
commit4d0efa101bbbc63d8bd1ec0477f027f23b9f573b
tree6e6b1715b2fa4711a2e1d7222aad80ba2414da5d
parent4543926ba8f8ec596dd4e45f206f4fbc29350567
t1007: factor out repeated setup

We have a series of 3 CRLF tests that do exactly the same
(long) setup sequence. Let's pull it out into a common setup
test, which is shorter, more efficient, and will make it
easier to add new tests.

Note that we don't have to worry about cleaning up any of
the setup which was previously per-test; we call pop_repo
after the CRLF tests, which cleans up everything.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1007-hash-object.sh