X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-fetch.sh;h=68356343a63b8c07def2edcbed4d3b8c06776921;hb=72095d5c3779344de13c47a8b1cb163b2d94126e;hp=fcc24f85c3e5d79f2e05511ad42d77e05626cc7a;hpb=6dc78e696b8597204b903073da932fc5ed0f419e;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index fcc24f85..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 } @@ -320,7 +322,7 @@ fetch_main () { ( : subshell because we muck with IFS IFS=" $LF" ( - git-fetch-pack $exec $keep "$remote" $rref || echo failed "$remote" + git-fetch-pack $exec $keep --thin "$remote" $rref || echo failed "$remote" ) | while read sha1 remote_name do