git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git fetch refs and tags
@ 2013-04-23 10:53 Jan Weitzel
  2013-04-23 11:25 ` Johan Herland
  2013-04-23 14:59 ` Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Weitzel @ 2013-04-23 10:53 UTC (permalink / raw)
  To: git; +Cc: sitaramc

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-04-24  7:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-04-23 20:50   ` Johan Herland
2013-04-24  7:45     ` Jan Weitzel

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).