git fetch refs and tags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]