remote.branch.tagopts = --tags not updating branches

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

 



For some reason I had tagopt set in a remote of mine. The drawback
is that it does not update any remote refs.

[remote "gerrit"]
        url = git://git.eclipse.org/gitroot/jgit/jgit
        fetch = +refs/heads/*:refs/remotes/gerrit/*
        fetch = +refs/changes/*:refs/remotes/gerrit/changes/*
        tagopt = --tags

First force a remote ref to become "old", then update it with C Git (nothing happens).
Them update for real with JGit.

$ git update-ref refs/remotes/gerrit/stable-2.0 058c74d8adcfb5ef0eed203a64b7f9ff65e87c8c
$ git fetch gerrit
$ jgit fetch gerrit
Updating references:    100% (1/1)
From git://git.eclipse.org/gitroot/jgit/jgit
   058c74d..23b8136  stable-2.0 -> gerrit/stable-2.0

From the docs I cannot see that Git is supposed to behave this way. The man pages
only mention the effects of this option on tags.

-- robin
--
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]