* remote.branch.tagopts = --tags not updating branches
@ 2012-06-02 9:54 Robin Rosenberg
0 siblings, 0 replies; only message in thread
From: Robin Rosenberg @ 2012-06-02 9:54 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-02 10:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02 9:54 remote.branch.tagopts = --tags not updating branches Robin Rosenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).