X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-fetch.sh;h=68356343a63b8c07def2edcbed4d3b8c06776921;hb=54c261f90fb8aa9a0f12431cce2c2631a119d667;hp=de4f011e26c3d0b2012ff44692757ca0c9984f16;hpb=f0b0af1b04f558b684cae2a3b805ca4bab84d45f;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 }