test-lib: use subshell instead of cd $new && .. && cd $old
commit8f6d1e2796a7f063428017b9a0467b1ee5002d9f
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 30 Aug 2010 12:00:42 +0000 (30 12:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Aug 2010 17:59:23 +0000 (31 10:59 -0700)
treed57bcc1e7ce7922cce3ce32c5923d841d8cf0b12
parent477e5a805ef9551634ed9cd85776680510a50fb3
test-lib: use subshell instead of cd $new && .. && cd $old

Change the test_create_repo code added in v1.2.2~6 to use a subshell
instead of keeping track of the old working directory and cd-ing back
when it's done.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh