git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jun 2, 2012, 09:54 UTC
Message-ID
<4FC9E2D2.5060705@dewire.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
Message 1 of 1 in “remote.branch.tagopts = --tags not updating branches”
  1. Robin RosenbergJun 2, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.