Code

t7405: cd inside subshell instead of around
authorJens Lehmann <Jens.Lehmann@web.de>
Wed, 1 Sep 2010 21:01:49 +0000 (23:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2010 16:33:23 +0000 (09:33 -0700)
commit1e2847634e7f171b1625295e3f41c1660ff4a61f
treef687e4e32c46ef8c9c5150740e24f1c35c4c2582
parentb49c452bb178cbf4dd0d46d88b564e3246b55da2
t7405: cd inside subshell instead of around

Instead of using `cd dir && (...) && cd..` use `(cd dir && ...)`

This ensures that the test doesn't get caught in the subdirectory if there
is an error in the subshell.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7405-submodule-merge.sh