* underscore in Subversion branch name
@ 2011-03-23 12:12 Korzynski, Aleksander
0 siblings, 0 replies; only message in thread
From: Korzynski, Aleksander @ 2011-03-23 12:12 UTC (permalink / raw)
To: git@vger.kernel.org
Dear Git Support,
I'm cloning a Subversion repository to Git. A bug in Git is triggered by
an underscore in the name of one of the Subversion branches.
I use the following command (note: some names are changed):
$ git svn clone https://AAA.FFF.com/svnroot/BBB -s
The process dies with the following error (names changed):
> Found possible branch point: https://AAA.FFF.com/svnroot/BBB/trunk/CCC => https://AAA.FFF.com/svnroot/BBB/branches/DD_EEEEEEE, 100
> fatal: Not a valid object name refs/remotes/DD EEEEEEE
> cat-file commit refs/remotes/DD EEEEEEE: command returned error: 128
Note that in the top line, the name of the branch contains an
underscore: "DD_EEEEEE". However, in the middle line, the branch name
contains a space: "DD EEEEEE". Apparently, Git at some point translates
the underscore in the name of the Subversion branch into a space.
I've had a look at the source code and the process dies inside
resolve_local_globs() in the git-svn script. A command at the beginning
of that subroutine is:
command(qw#for-each-ref --format=%(refname) refs/#)
When I run the following by hand:
$ git for-each-ref --format='%(refname)' refs
one of the output lines is:
refs/remotes/DD%20EEEEEEE
So it has a sanitised space (%20) at that point already, instead of an
underscore.
Git version: 1.7.1
Best regards,
Aleksander Korzynski
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-23 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 12:12 underscore in Subversion branch name Korzynski, Aleksander
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).