From 1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Mon, 6 Jan 2020 23:53:09 -0500 Subject: 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 Signed-off-by: Junio C Hamano 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' ' -- cgit v0.10.2-6-g49f6