git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Weitzel <J.Weitzel@phytec.de>
To: git@vger.kernel.org
Cc: sitaramc@gmail.com
Subject: git fetch refs and tags
Date: Tue, 23 Apr 2013 12:53:41 +0200	[thread overview]
Message-ID: <1366714421.2899.10.camel@lws-weitzel> (raw)

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. (Although the
man pages points to the behaviour regarding dangling objects). Is there
a way to avoid this? I only find --no-tags which results in having no
tags at all. Or need I git purge to remove the old objects first?
My goal is to fetch only specific branches and the related tags.

Jan

             reply	other threads:[~2013-04-23 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23 10:53 Jan Weitzel [this message]
2013-04-23 11:25 ` git fetch refs and tags Johan Herland
2013-04-23 11:45   ` Jan Weitzel
2013-04-23 12:16     ` Johan Herland
2013-04-23 14:59 ` Junio C Hamano
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=1366714421.2899.10.camel@lws-weitzel \
    --to=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).