summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4682693)
raw | patch | inline | side by side (parent: 4682693)
author | Jens Lehmann <Jens.Lehmann@web.de> | |
Mon, 6 Sep 2010 18:41:06 +0000 (20:41 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Sep 2010 21:27:35 +0000 (14:27 -0700) |
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>
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>
t/t3404-rebase-interactive.sh | patch | blob | history | |
t/t7508-status.sh | patch | blob | history |
index af3b663aeee8354c6f8f2dff05666f6d70c07055..7d20a74c5ca1331ff241d1596bcb114e48a5907d 100755 (executable)
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
'
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 18b07d9d36a55271b582b6fb8bf90e9e197f0622..c9300f3c8b246e3c81570532534748e510a2865f 100755 (executable)
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -808,7 +808,7 @@ test_expect_success POSIXPERM,SANITY 'status succeeds in a read-only repository'
(exit $status)
'
-(cd sm && echo > bar && git add bar && git commit -q -m 'Add bar' && cd .. && git add sm)
+(cd sm && echo > bar && git add bar && git commit -q -m 'Add bar') && git add sm
new_head=$(cd sm && git rev-parse --short=7 --verify HEAD)
touch .gitmodules