checkout new branch tracks wrong remote (bug?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx/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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]