X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-fetch.sh;h=68356343a63b8c07def2edcbed4d3b8c06776921;hb=621c53cc082299eaf69e9f2dc0274547c7d87fb0;hp=de4f011e26c3d0b2012ff44692757ca0c9984f16;hpb=7465ef5155cec830a34dcffdd8272d4beb243220;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index de4f011e..68356343 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -164,6 +164,7 @@ fast_forward_local () { ;; *,$local) echo >&2 "* $1: fast forward to $3" + echo >&2 " from $local to $2" git-update-ref "$1" "$2" "$local" ;; *) @@ -178,6 +179,7 @@ fast_forward_local () { ;; *) echo >&2 " not updating." + exit 1 ;; esac }