git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* checkout new branch tracks wrong remote (bug?)
@ 2011-03-30  2:27 chris
  2011-03-30 14:59 ` Jeff King
  0 siblings, 1 reply; 13+ messages in thread
From: chris @ 2011-03-30  2:27 UTC (permalink / raw)
  To: git

I have two remotes configured.

One is "origin" which has a local tracking branch "master" for "origin/master".

The other is "mirror" which has option mirror = true

While on the local branch master, I issue the command:

$ git checkout -b wip

The branch "wip" is created and oddly configured to track the "mirror" remote.

Here is the .git/config after the "wip" branch was created:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = ssh://myserver.com/srv/git/myproject.git
[branch "master"]
        remote = origin
        merge = refs/heads/master
[remote "mirror"]
        url = ssh://chris@myserver.com/srv/git/mirrors/chris/myproject.git
        fetch = +refs/*:refs/*
        mirror = true
[branch "wip"]
        remote = mirror
        merge = refs/heads/master

$ git --version
git version 1.7.4.1
$ git config branch.autosetupmerge
$

I do not expect this "wip" branch to be tracking the "mirror" remote, but rather
"origin", according to the documentation.

chris

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-03-31 13:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30  2:27 checkout new branch tracks wrong remote (bug?) chris
2011-03-30 14:59 ` Jeff King
2011-03-30 19:51   ` [PATCH 0/3] better "remote add --mirror" semantics Jeff King
2011-03-30 19:52     ` [PATCH 1/3] remote: disallow some nonsensical option combinations Jeff King
2011-03-30 19:53     ` [PATCH 2/3] remote: separate the concept of push and fetch mirrors Jeff King
2011-03-30 20:45       ` Junio C Hamano
2011-03-30 20:57         ` Jeff King
2011-03-30 22:22           ` Junio C Hamano
2011-03-31  2:44             ` chris
2011-03-31  2:50               ` chris
2011-03-31  4:03                 ` Junio C Hamano
2011-03-31 12:59                   ` chris
2011-03-30 19:53     ` [PATCH 3/3] remote: deprecate --mirror Jeff King

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).