diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-09-06 20:41:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-06 14:27:35 -0700 |
commit | c2e0940b44ded03f0af02be95c35b231fea633c1 (patch) | |
tree | 54654c724e776f6b4f1fe78b9d559cce01ba9782 /t/t3404-rebase-interactive.sh | |
parent | Merge branch 'maint' (diff) | |
download | tgif-c2e0940b44ded03f0af02be95c35b231fea633c1.tar.xz |
t3404 & t7508: cd inside subshell instead of around
Fixed all places where it was a straightforward change from cd'ing into a
directory and back via "cd .." to a cd inside a subshell.
Found these places with "git grep -w "cd \.\.".
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3404-rebase-interactive.sh')
-rwxr-xr-x | t/t3404-rebase-interactive.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index af3b663aee..7d20a74c5c 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -101,10 +101,10 @@ test_expect_success 'rebase -i with the exec command' ' test_expect_success 'rebase -i with the exec command runs from tree root' ' git checkout master && - mkdir subdir && cd subdir && + mkdir subdir && (cd subdir && FAKE_LINES="1 exec_>touch-subdir" \ - git rebase -i HEAD^ && - cd .. && + git rebase -i HEAD^ + ) && test_path_is_file touch-subdir && rm -fr subdir ' |