projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.18.0
[platform/upstream/git.git]
/
t
/
t4116-apply-reverse.sh
diff --git
a/t/t4116-apply-reverse.sh
b/t/t4116-apply-reverse.sh
index
1e4d438
..
ce8567f
100755
(executable)
--- a/
t/t4116-apply-reverse.sh
+++ b/
t/t4116-apply-reverse.sh
@@
-30,10
+30,10
@@
test_expect_success setup '
test_expect_success 'apply in forward' '
test_expect_success 'apply in forward' '
- T0=
`git rev-parse "second^{tree}"`
&&
+ T0=
$(git rev-parse "second^{tree}")
&&
git reset --hard initial &&
git apply --index --binary patch &&
git reset --hard initial &&
git apply --index --binary patch &&
- T1=
`git write-tree`
&&
+ T1=
$(git write-tree)
&&
test "$T0" = "$T1"
'
test "$T0" = "$T1"
'
@@
-62,22
+62,22
@@
test_expect_success 'setup separate repository lacking postimage' '
test_expect_success 'apply in forward without postimage' '
test_expect_success 'apply in forward without postimage' '
- T0=
`git rev-parse "second^{tree}"`
&&
+ T0=
$(git rev-parse "second^{tree}")
&&
(
cd initial &&
git apply --index --binary ../patch &&
(
cd initial &&
git apply --index --binary ../patch &&
- T1=
`git write-tree`
&&
+ T1=
$(git write-tree)
&&
test "$T0" = "$T1"
)
'
test_expect_success 'apply in reverse without postimage' '
test "$T0" = "$T1"
)
'
test_expect_success 'apply in reverse without postimage' '
- T0=
`git rev-parse "initial^{tree}"`
&&
+ T0=
$(git rev-parse "initial^{tree}")
&&
(
cd second &&
git apply --index --binary --reverse ../patch &&
(
cd second &&
git apply --index --binary --reverse ../patch &&
- T1=
`git write-tree`
&&
+ T1=
$(git write-tree)
&&
test "$T0" = "$T1"
)
'
test "$T0" = "$T1"
)
'