Re: [RFC PATCH v3] Teach remote add the --remote-tags option
- From
Wink Saville <wink@saville.com>
- Date
- Apr 28, 2018, 21:27 UTC
- Message-ID
- <CAKk8ispsPehLkVwWqtUq7rhxeBvn0+Xhn9VWhbYJjjZgy8WLPw@mail.gmail.com>
- In-Reply-To
- <CAKk8isq9wXLpMJxT4SHzAtj6abm6phH4G-XjfUY4=0V6g3XxdQ@mail.gmail.com>
I forgot to mention that I added the code to error out
if --remote-tags is used with "tracking" (-t | --track) or
mirror:
+ if ((fetch_tags == TAGS_SET_REMOTE) && mirror)
+ die(_("specifying --remote-tags makes no sense with
--mirror"));
+ if ((fetch_tags == TAGS_SET_REMOTE) && track.nr)
+ die(_("specifying --remote-tags makes no sense with
-t or --track"));