Merge branch 'jc/fetch'
authorJunio C Hamano <junkio@cox.net>
Fri, 24 Mar 2006 07:46:06 +0000 (23:46 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Mar 2006 07:46:06 +0000 (23:46 -0800)
* jc/fetch:
fetch: exit non-zero when fast-forward check fails.

git-fetch.sh
index 0346d4a45ca6a67bc0f6521dea799bf37cbb7cf1..68356343a63b8c07def2edcbed4d3b8c06776921 100755 (executable)
@@ -179,6 +179,7 @@ fast_forward_local () {
                        ;;
                *)
                        echo >&2 "  not updating."
+                       exit 1
                        ;;
                esac
            }