X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-fetch.sh;h=31e5f4c7225df3d279b78f67ebd0f7a8c87ede40;hb=bd321bcc51e95f644ac5335abe673afcbcaade62;hp=31b1cf0306c238dad7fb5b808a7925776ac4d762;hpb=cdb3950801fec8e9efa1607093a6e51737bacba0;p=git.git diff --git a/git-fetch.sh b/git-fetch.sh index 31b1cf03..31e5f4c7 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -114,7 +114,12 @@ fast_forward_local () { # is no way to guarantee "fast-forward" anyway. if test -f "$GIT_DIR/$1" then - echo >&2 "* $1: updating with $3" + if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2" + then + echo >&2 "* $1: same as $3" + else + echo >&2 "* $1: updating with $3" + fi else echo >&2 "* $1: storing $3" fi