From: Jeff King Date: Wed, 25 Mar 2015 05:29:10 +0000 (-0400) Subject: t7701: fix ignored exit code inside loop X-Git-Tag: v2.4.0-rc0~1^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/76e057dba29af1f322a19cb75b2921010dbe459c?ds=inline;hp=76e057dba29af1f322a19cb75b2921010dbe459c t7701: fix ignored exit code inside loop When checking a list of file mtimes, we use a loop and break out early from the loop if any entry does not match. However, the exit code of a loop exited via break is always 0, meaning that the test will fail to notice we had a mismatch. Since the loop is inside a function, we can fix this by doing an early "return 1". Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---