threads / discuss / 30685

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

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

## tl;dr

One message between Jun 2, 2012 and Jun 2, 2012.

replies: 0people: 1as markdown or json

Robin Rosenberg· Jun 2, 2012, 09:54 UTC · lore

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

← back to recent threads