Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: remote branches

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:50:33

On 2011.02.13 10:17:48 +0100, Ævar Arnfjörð Bjarmason wrote:
Also because you specified --tags you're only getting the tags on "git
fetch"
That looks like a bug to me.

It's ok for fetch to treat --tags like a refspec and to have it override
the defaults from the config when the user manually specifies it on the
command line. But when it is part of the default configuration it should
add to remote.<name>.fetch, not override it.

IOW with this configuration:
remote.foo.url = git://host/repo.git
remote.foo.fetch = +refs/heads/*:refs/remotes/foo/*
remote.foo.tagopt = --tags

"git fetch foo" acts like:

git fetch --tags git://host/repo.git

instead of

git fetch --tags git://host/repo.git +refs/heads/*:refs/remotes/foo/*

And I'd argue that the latter makes a lot more sense. Also because the
former could always be achieved by dropping the remote.foo.fetch config
setting.

Thoughts?

Björn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help