{"thread":{"id":"30685","subject":"remote.branch.tagopts = --tags not updating branches","startedAt":"2012-06-02T09:54:26Z","lastAt":"2012-06-02T09:54:26Z","messageCount":1,"participants":["Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192705","messageId":"4FC9E2D2.5060705@dewire.com","threadId":"30685","inReplyTo":null,"subject":"remote.branch.tagopts = --tags not updating branches","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2012-06-02T09:54:26Z","receivedAt":"2012-06-02T09:54:26Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"For some reason I had tagopt set in a remote of mine. The drawback\nis that it does not update any remote refs.\n\n[remote \"gerrit\"]\n         url = git://git.eclipse.org/gitroot/jgit/jgit\n         fetch = +refs/heads/*:refs/remotes/gerrit/*\n         fetch = +refs/changes/*:refs/remotes/gerrit/changes/*\n         tagopt = --tags\n\nFirst force a remote ref to become \"old\", then update it with C Git (nothing happens).\nThem update for real with JGit.\n\n$ git update-ref refs/remotes/gerrit/stable-2.0 058c74d8adcfb5ef0eed203a64b7f9ff65e87c8c\n$ git fetch gerrit\n$ jgit fetch gerrit\nUpdating references:    100% (1/1)\n From git://git.eclipse.org/gitroot/jgit/jgit\n    058c74d..23b8136  stable-2.0 -> gerrit/stable-2.0\n\n From the docs I cannot see that Git is supposed to behave this way. The man pages\nonly mention the effects of this option on tags.\n\n-- robin\n"}]}