git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c327762
)
t7201: use 'git -C' to avoid subshell
author
Charvi Mendiratta
<redacted>
Tue, 20 Oct 2020 11:43:18 +0000
(17:13 +0530)
committer
Junio C Hamano
<redacted>
Thu, 22 Oct 2020 17:37:57 +0000
(10:37 -0700)
Signed-off-by: Charvi Mendiratta <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t7201-co.sh
patch
|
blob
|
history
diff --git
a/t/t7201-co.sh
b/t/t7201-co.sh
index 74553f991b676ed99e806530c20ead64be1f2ed0..5898182fd22a651d803f53498c53f204266d61b7 100755
(executable)
--- a/
t/t7201-co.sh
+++ b/
t/t7201-co.sh
@@
-339,10
+339,7
@@
test_expect_success 'switch branches while in subdirectory' '
git checkout master &&
mkdir subs &&
- (
- cd subs &&
- git checkout side
- ) &&
+ git -C subs checkout side &&
! test -f subs/one &&
rm -fr subs
'
@@
-357,10
+354,7
@@
test_expect_success 'checkout specific path while in subdirectory' '
git checkout master &&
mkdir -p subs &&
- (
- cd subs &&
- git checkout side -- bero
- ) &&
+ git -C subs checkout side -- bero &&
test -f subs/bero
'
git clone https://git.99rst.org/PROJECT