git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug: Git-Svn creates wrong tag when svn tag contains spaces

From
bronek <kenorb@gmail.com>
Date
Jul 19, 2012, 17:42 UTC
Message-ID
<CANmdXCFFNUk1NntEkJUBjm4XyQPzRUdxDLOksEK63a0B0bTkrQ@mail.gmail.com>
In-Reply-To
<871uk76dxw.fsf@thomas.inf.ethz.ch>
The problem is as follow:
1. git svn fetch
2.
Found possible branch point: https://xxx/svn/xxx/branches/11-07 D t-m
=> https://xxx/svn/xxx/branches/11-09 S t-m, 4332
fatal: Not a valid object name refs/remotes/1-11 M R 2.6
cat-file commit refs/remotes/1-11 M R 2.6: command returned error: 128
I'm using git version 1.7.9.5 on Ubuntu 12.04

I've tried to create the tag manually, but it's not allowed. $ git tag "11-07 D t-m" remotes/11-07%20D fatal: '11-07 D t-m' is not a valid tag name.

As workaround I've tried:
- to create or rename tag manually as suggested here:
http://stackoverflow.com/questions/11365317/git-svn-clone-fails-fatal-not-a-valid-object-name/11559472#11559472
- http://qa.celogeek.com/programming/versionning/git/svn/rebase_with_bad_object_after_rm
But without success.

There is also bug report on lunchpad: https://bugs.launchpad.net/ubuntu/+source/git/+bug/786942 strace log: [pid 30618] access(".git/config", R_OK) = 0 [pid 30618] open(".git/config", O_RDONLY) = 3 [pid 30618] fstat(3, {st_mode=S_IFREG|0664, st_size=551, ...}) = 0 [pid 30618] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2ed01e9000 [pid 30618] read(3, "[core]\n\trepositoryformatversion "..., 4096) = 551 [pid 30618] read(3, "", 4096) = 0 [pid 30618] close(3) = 0 [pid 30618] munmap(0x7f2ed01e9000, 4096) = 0 [pid 30618] write(2, "fatal: Not a valid object name r"..., 76fatal: Not a valid object name refs/remotes/1-11 M R 2.6 ) = 76 [pid 30618] exit_group(128) = ?

--- Kind regards, Rafal

On 19 July 2012 16:08, Thomas Rast <trast@student.ethz.ch> wrote:
Show 12 quoted lines
>
> "Rafal W." <kenorb@gmail.com> writes:
>
> > I've the problem described here:
> > http://code.google.com/p/git-core/issues/detail?id=16
>
> Git does not have a bug tracker.  Please post the issue, description,
> etc. to this list.
>
> --
> Thomas Rast
> trast@{inf,student}.ethz.ch
Previous: Rafal W.
Message 2 of 2 in “Bug: Git-Svn creates wrong tag when svn tag contains spaces”
  1. Rafal W.Jul 19, 2012
  2. bronekJul 19, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.