fetch: exit non-zero when fast-forward check fails.
authorJunio C Hamano <junkio@cox.net>
Fri, 17 Mar 2006 06:04:18 +0000 (22:04 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 17 Mar 2006 22:10:36 +0000 (14:10 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh

index 0346d4a..6835634 100755 (executable)
@@ -179,6 +179,7 @@ fast_forward_local () {
                        ;;
                *)
                        echo >&2 "  not updating."
+                       exit 1
                        ;;
                esac
            }