@matheusbsbs / matheus-bagliano / commits / 1c9fd32fd2
Fork 0

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>

Denton Liu committed Jan 6, 2020 at 23:53 UTC 1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0
1 file changed +2 -1
t/t3419-rebase-patch-id.sh
+2 -1
@@ -80,7 +80,8 @@ do_tests () {
80 git commit -q -m "change big file again" &&
81 git checkout -q other^{} &&
82 git rebase master &&
83 - test_must_fail test -n "$(git rev-list master...HEAD~)"
83 + git rev-list master...HEAD~ >revs &&
84 + test_must_be_empty revs
85 '
86
87 test_expect_success $pr 'do not drop patch' '