Skip to content

Commit

Permalink
Even when overwriting tags, report if they are changed or not.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 19, 2005
1 parent fe5f51c commit f876579
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f876579

Please sign in to comment.