* Ambiguous branch names...
@ 2014-02-16 20:34 Ingo Rohloff
2014-02-16 22:47 ` Duy Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Ingo Rohloff @ 2014-02-16 20:34 UTC (permalink / raw)
To: git
Hello,
while trying out git (version 1.7.9.5), I did this:
git clone -- ssh://myserver/~rohloff/git/w1.git w1
So I just cloned a test repository.
The in the cloned "w1" repository I executed:
git branch origin/master
git branch remotes/origin/master
git branch refs/remotes/origin/master
I now have got three *local* branches with the above names, which
now seems to make it impossible to refer to the master branch
from the "origin" *remote* repository.
Wouldn't it make sense to forbid such names for local branches ?
For example to enforce some rules like a local branch name *must not*
start with "remotes/" or "refs/" ?
so long
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Ambiguous branch names...
2014-02-16 20:34 Ambiguous branch names Ingo Rohloff
@ 2014-02-16 22:47 ` Duy Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Duy Nguyen @ 2014-02-16 22:47 UTC (permalink / raw)
To: Ingo Rohloff; +Cc: Git Mailing List
On Mon, Feb 17, 2014 at 3:34 AM, Ingo Rohloff <lundril@gmx.de> wrote:
> Hello,
>
> while trying out git (version 1.7.9.5), I did this:
>
> git clone -- ssh://myserver/~rohloff/git/w1.git w1
>
> So I just cloned a test repository.
> The in the cloned "w1" repository I executed:
>
> git branch origin/master
> git branch remotes/origin/master
> git branch refs/remotes/origin/master
>
> I now have got three *local* branches with the above names, which
> now seems to make it impossible to refer to the master branch
> from the "origin" *remote* repository.
>
> Wouldn't it make sense to forbid such names for local branches ?
> For example to enforce some rules like a local branch name *must not*
> start with "remotes/" or "refs/" ?
See http://thread.gmane.org/gmane.comp.version-control.git/242096/focus=242181.
The proposal basically is you can't create those branches without -f.
--
Duy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-16 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 20:34 Ambiguous branch names Ingo Rohloff
2014-02-16 22:47 ` Duy Nguyen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.