From a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 16 Mar 2006 22:04:18 -0800 Subject: [PATCH] fetch: exit non-zero when fast-forward check fails. Signed-off-by: Junio C Hamano --- git-fetch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/git-fetch.sh b/git-fetch.sh index 0346d4a45..68356343a 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -179,6 +179,7 @@ fast_forward_local () { ;; *) echo >&2 " not updating." + exit 1 ;; esac } -- 2.26.2