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

1 messages from 2012-06-02 to 2012-06-02. Participants: Robin Rosenberg.
Thread: https://gitlist.dev/t/30685

## Robin Rosenberg, 2012-06-02 09:54

Subject: remote.branch.tagopts = --tags not updating branches
Message-ID: <4FC9E2D2.5060705@dewire.com>
URL: https://gitlist.dev/e/4FC9E2D2.5060705%40dewire.com

```
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

```
