From: Baptiste Delestre <baptisted@eugensystems.com>
To: git@vger.kernel.org
Subject: git fetch --no-tags still fetch tags when remote name is provided
Date: Wed, 17 Jul 2019 13:10:58 +0200 [thread overview]
Message-ID: <07af82bd-0f4d-77b3-b5ae-e1efc887ade5@eugensystems.com> (raw)
Hi!
I have two remotes with different tags, so when I use "git fetch" it
removes the tag from the other remote and add tag from the origin remote.
So I tried to use "git fetch --no-tags" to prevent this behavior and I
have no use for those tags locally.
The problem is it works for the origin remote but when I fetch the other
remote with "git fetch --no-tags other" it fetch tags.
The same happen when fetching a group or with "git fetch --all --no-tags".
I have tried to set the "remote.<remote>.tagOpt = --no-tags" option in
git config with no difference in behavior.
Is there a way to force tags not to be updated at all with "git fetch
--all" in this case?
(git version 2.22.0.windows.1 and git version 2.18.0.windows.1)
Regards,
Baptiste
reply other threads:[~2019-07-17 12:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07af82bd-0f4d-77b3-b5ae-e1efc887ade5@eugensystems.com \
--to=baptisted@eugensystems.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).