Skip to content

Commit 6356003

Browse files
committed
Merge branch 'pt/pull-tags-error-diag' into maint
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
2 parents 6998d89 + 19d122b commit 6356003

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

git-pull.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,6 @@ esac
193193

194194
error_on_no_merge_candidates () {
195195
exec >&2
196-
for opt
197-
do
198-
case "$opt" in
199-
-t|--t|--ta|--tag|--tags)
200-
echo "It doesn't make sense to pull all tags; you probably meant:"
201-
echo " git fetch --tags"
202-
exit 1
203-
esac
204-
done
205196

206197
if test true = "$rebase"
207198
then

0 commit comments

Comments
 (0)