Even when overwriting tags, report if they are changed or not.
Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
fe5f51ce27
commit
f8765797a4
|
@ -114,7 +114,12 @@ fast_forward_local () {
|
||||||
# is no way to guarantee "fast-forward" anyway.
|
# is no way to guarantee "fast-forward" anyway.
|
||||||
if test -f "$GIT_DIR/$1"
|
if test -f "$GIT_DIR/$1"
|
||||||
then
|
then
|
||||||
|
if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
|
||||||
|
then
|
||||||
|
echo >&2 "* $1: same as $3"
|
||||||
|
else
|
||||||
echo >&2 "* $1: updating with $3"
|
echo >&2 "* $1: updating with $3"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo >&2 "* $1: storing $3"
|
echo >&2 "* $1: storing $3"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue