Skip to content

Commit 4d81ce1

Browse files
avargitster
authored andcommitted
t7600: don't ignore "rev-parse" exit code in helper
Change the verify_mergeheads() helper the check the exit code of "git rev-parse". Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e5c6f commit 4d81ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7600-merge.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ verify_mergeheads () {
105105
test_write_lines "$@" >mergehead.expected &&
106106
while read sha1 rest
107107
do
108-
git rev-parse $sha1
108+
git rev-parse $sha1 || return 1
109109
done <.git/MERGE_HEAD >mergehead.actual &&
110110
test_cmp mergehead.expected mergehead.actual
111111
}

0 commit comments

Comments
 (0)