Code

t7610: cd inside subshell instead of around
authorBrian Gernhardt <brian@gernhardtsoftware.com>
Tue, 24 Aug 2010 02:37:24 +0000 (22:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Aug 2010 16:33:09 +0000 (09:33 -0700)
commit25641fcdb0d31130fadd649861035cc7db859cf7
treecdb11e4e667f493556a8039c9fab12f5bdbc1d6b
parentbc38219f50ba9228945fba8e900d636f15082f16
t7610: 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: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7610-mergetool.sh