Fix "git-fetch --tags" exit status when nothing has been changed
[gitweb.git] / git-pull.sh
index 076785c96b30b4fd8ab944324fd53db7c584567a..d337bf4da31c8a86eeaee7b34b910611100ccca8 100755 (executable)
@@ -45,7 +45,7 @@ do
 done
 
 orig_head=$(git-rev-parse --verify HEAD) || die "Pulling into a black hole?"
-git-fetch --update-head-ok "$@" || exit 1
+git-fetch --update-head-ok --reflog-action=pull "$@" || exit 1
 
 curr_head=$(git-rev-parse --verify HEAD)
 if test "$curr_head" != "$orig_head"