summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-17 06:04:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-03-17 22:10:36 (GMT)
commita9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90 (patch)
tree4b3ffd541a963097760702c437a4c02e21dd9508
parent53dc4636275c966bb0781709fd0dded1cced4458 (diff)
downloadgit-a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90.zip
git-a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90.tar.gz
git-a9698bb22fb7b66e5882c3a5e7b2b8b53ea03f90.tar.bz2
fetch: exit non-zero when fast-forward check fails.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-fetch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 0346d4a..6835634 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -179,6 +179,7 @@ fast_forward_local () {
;;
*)
echo >&2 " not updating."
+ exit 1
;;
esac
}