From: Junio C Hamano <gitster@pobox.com>
To: J.Weitzel@phytec.de
Cc: git@vger.kernel.org, sitaramc@gmail.com
Subject: Re: git fetch refs and tags
Date: Tue, 23 Apr 2013 07:59:52 -0700 [thread overview]
Message-ID: <7vsj2hl2c7.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1366714421.2899.10.camel@lws-weitzel> (Jan Weitzel's message of "Tue, 23 Apr 2013 12:53:41 +0200")
Jan Weitzel <J.Weitzel@phytec.de> writes:
> Hello,
> I have the following problem: I have 2 bare git repositories one has
> several branches and tags.
> If I try this in the second repository:
> git fetch -f ../main.git refs/heads/master:refs/heads/master
> I'm getting also tags from other branches, if I have an old object from
> one of the other branches.
> I would expect to have only tags pointing to master ref.
A tag that points at a commit that is reachable from 'master' will
be followed, not just pointing _at_ 'master'. For example, when
your 'master' is a bit beyond v1.2 release, it is likely you will
also get v1.1 and v1.0 tags (if your release structure is such that
new release contains everything old releases had).
next prev parent reply other threads:[~2013-04-23 15:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 10:53 git fetch refs and tags Jan Weitzel
2013-04-23 11:25 ` Johan Herland
2013-04-23 11:45 ` Jan Weitzel
2013-04-23 12:16 ` Johan Herland
2013-04-23 14:59 ` Junio C Hamano [this message]
2013-04-23 20:50 ` Johan Herland
2013-04-24 7:45 ` Jan Weitzel
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vsj2hl2c7.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=J.Weitzel@phytec.de \
--cc=git@vger.kernel.org \
--cc=sitaramc@gmail.com \
/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.
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 NNTP newsgroup(s).