Code

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 0346d4a45ca6a67bc0f6521dea799bf37cbb7cf1..68356343a63b8c07def2edcbed4d3b8c06776921 100755 (executable)
@@ -179,6 +179,7 @@ fast_forward_local () {
                        ;;
                *)
                        echo >&2 "  not updating."
+                       exit 1
                        ;;
                esac
            }