aboutsummaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-16 22:04:18 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-17 14:10:36 -0800
commita9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90 (patch)
tree4b3ffd541a963097760702c437a4c02e21dd9508 /git-fetch.sh
parent53dc4636275c966bb0781709fd0dded1cced4458 (diff)
downloadgit-a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90.tar.gz
git-a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90.tar.xz
fetch: exit non-zero when fast-forward check fails.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh1
1 files changed, 1 insertions, 0 deletions
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
}