Merge branch 'pt/pull-tags-error-diag'
authorJunio C Hamano <gitster@pobox.com>
Fri, 22 May 2015 19:41:56 +0000 (12:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 May 2015 19:41:56 +0000 (12:41 -0700)
There was a dead code that used to handle "git pull --tags" and
show special-cased error message, which was made irrelevant when
the semantics of the option changed back in Git 1.9 days.

* pt/pull-tags-error-diag:
pull: remove --tags error in no merge candidates case

git-pull.sh
index 9ed01fd21919f2e6b849aef20e9496bf52f41f41..9005171b74e0a865ecab869a00ab24b08b3b39e7 100755 (executable)
@@ -190,15 +190,6 @@ esac
 
 error_on_no_merge_candidates () {
        exec >&2
-       for opt
-       do
-               case "$opt" in
-               -t|--t|--ta|--tag|--tags)
-                       echo "It doesn't make sense to pull all tags; you probably meant:"
-                       echo "  git fetch --tags"
-                       exit 1
-               esac
-       done
 
        if test true = "$rebase"
        then