git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] "git checkout -b" erronously thinks a branch already exists
@ 2011-06-05 11:05 Stefano Lattarini
  2011-06-06  1:38 ` Re* " Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Lattarini @ 2011-06-05 11:05 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: Text/Plain, Size: 1238 bytes --]

First of all, sorry if this is the wrong address for bug reporting,
but I couldn't find any `git-bug' mailing list, nor a bug tracker.

Apparently, "git checkout -b NAME" fails if NAME contains the output
from "git-describe".  This happens for me both with git 1.7.2.3
installed from debian packages, and with the latest developement
version of git.

The attached script demonstrate the failures; here is what it outputs
on my system:

 $ sh bug.sh 
 + GIT=git
 + mkdir foo.dir
 + cd foo.dir
 + git init
 Initialized empty Git repository in /tmp/foo.dir/.git/
 + :
 + git add f1
 + git commit -m none
 [master (root-commit) 9b06795] none
  0 files changed, 0 insertions(+), 0 deletions(-)
  create mode 100644 f1
 + git tag -a -m 'first commit' v0
 + :
 + git add f2
 + git commit -m none
 [master ef5d975] none
  0 files changed, 0 insertions(+), 0 deletions(-)
  create mode 100644 f2
 ++ git describe
 + desc=v0-1-gef5d975
 + git checkout -b fix-v0-1-gef5d975
 fatal: git checkout: branch fix-v0-1-gef5d975 already exists

If you need more details, or if you can explain why this is an user error,
please keep me in CC:, as I'm not subscribed to this list.  In case it is
indeed an user error, sorry for the noise.

Regards,
  Stefano

[-- Attachment #2: bug.sh --]
[-- Type: application/x-shellscript, Size: 233 bytes --]

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

end of thread, other threads:[~2011-06-06 16:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 11:05 [BUG] "git checkout -b" erronously thinks a branch already exists Stefano Lattarini
2011-06-06  1:38 ` Re* " Junio C Hamano
2011-06-06  5:27   ` Junio C Hamano
2011-06-06  8:26     ` Stefano Lattarini
2011-06-06 16:05     ` 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).