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>
This commit is contained in:
parent
4682693e9c
commit
c2e0940b44
@ -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' '
|
test_expect_success 'rebase -i with the exec command runs from tree root' '
|
||||||
git checkout master &&
|
git checkout master &&
|
||||||
mkdir subdir && cd subdir &&
|
mkdir subdir && (cd subdir &&
|
||||||
FAKE_LINES="1 exec_>touch-subdir" \
|
FAKE_LINES="1 exec_>touch-subdir" \
|
||||||
git rebase -i HEAD^ &&
|
git rebase -i HEAD^
|
||||||
cd .. &&
|
) &&
|
||||||
test_path_is_file touch-subdir &&
|
test_path_is_file touch-subdir &&
|
||||||
rm -fr subdir
|
rm -fr subdir
|
||||||
'
|
'
|
||||||
|
@ -808,7 +808,7 @@ test_expect_success POSIXPERM,SANITY 'status succeeds in a read-only repository'
|
|||||||
(exit $status)
|
(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)
|
new_head=$(cd sm && git rev-parse --short=7 --verify HEAD)
|
||||||
touch .gitmodules
|
touch .gitmodules
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user