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

2 messages from 2012-07-19 to 2012-07-19. Participants: Rafal W., bronek.
Thread: https://gitlist.dev/t/31052

## Rafal W., 2012-07-19 13:41

Subject: Bug: Git-Svn creates wrong tag when svn tag contains spaces
Message-ID: <3760846560270293323@unknownmsgid>
URL: https://gitlist.dev/e/3760846560270293323%40unknownmsgid

```
I've the problem described here:
http://code.google.com/p/git-core/issues/detail?id=16


Kind Regards,
Rafal

Sent from my iPhone

```

## bronek, 2012-07-19 17:42

Subject: Re: Bug: Git-Svn creates wrong tag when svn tag contains spaces
Message-ID: <CANmdXCFFNUk1NntEkJUBjm4XyQPzRUdxDLOksEK63a0B0bTkrQ@mail.gmail.com>
URL: https://gitlist.dev/e/CANmdXCFFNUk1NntEkJUBjm4XyQPzRUdxDLOksEK63a0B0bTkrQ%40mail.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:
>
> "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

```
