remote.branch.tagopts = --tags not updating branches
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