Even when overwriting tags, report if they are changed or not.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 18, 2005 at 18:42 UTC
f8765797a41a39f4dfc7030098c38283e6461a83
1 file changed
+6
-1
git-fetch.sh
+6
-1
@@ -114,7 +114,12 @@ fast_forward_local () {
114
# is no way to guarantee "fast-forward" anyway.
115
if test -f "$GIT_DIR/$1"
116
then
117
- echo >&2 "* $1: updating with $3"
117
+ if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
118
+ then
119
+ echo >&2 "* $1: same as $3"
120
+ else
121
+ echo >&2 "* $1: updating with $3"
122
+ fi
123
else
124
echo >&2 "* $1: storing $3"
125
fi