Jan Weitzel <J.Weitzel@xxxxxxxxx> 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). -- 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