summaryrefslogtreecommitdiff
path: root/t/t3419-rebase-patch-id.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-01-07 04:53:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-27 20:56:02 (GMT)
commit1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0 (patch)
tree549bfce1ae3f7e839a567f82f4ed61381ef8cd48 /t/t3419-rebase-patch-id.sh
parentc232ffa83cb3b21e4e6671c50609bfaf5659e899 (diff)
downloadgit-1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0.zip
git-1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0.tar.gz
git-1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0.tar.bz2
t3419: stop losing return code of git command
Fix invocation of git command so its exit codes is not lost within a non-assignment command substitution. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3419-rebase-patch-id.sh')
-rwxr-xr-xt/t3419-rebase-patch-id.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t3419-rebase-patch-id.sh b/t/t3419-rebase-patch-id.sh
index 49f548c..9455266 100755
--- a/t/t3419-rebase-patch-id.sh
+++ b/t/t3419-rebase-patch-id.sh
@@ -80,7 +80,8 @@ do_tests () {
git commit -q -m "change big file again" &&
git checkout -q other^{} &&
git rebase master &&
- test_must_fail test -n "$(git rev-list master...HEAD~)"
+ git rev-list master...HEAD~ >revs &&
+ test_must_be_empty revs
'
test_expect_success $pr 'do not drop patch' '