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

Re: git-svn dcommit losing/detaching head when commit message empty

From
HLHin-Tak Leung <hintak.leung@gmail.com>
Date
Feb 24, 2011, 02:37 UTC
Message-ID
<AANLkTi=Dk4VDkzE=j=CCbkb6dUAQRKHT9xT6Oefn+Ujd@mail.gmail.com>
In-Reply-To
<AANLkTi=A-UG2aOcwwNbjoBK4pYDtKp=0nFmcwrgVv0f8@mail.gmail.com>

On Thu, Feb 24, 2011 at 1:27 AM, Hin-Tak Leung <hintak.leung@gmail.com> wrote: ...

Show 12 quoted lines
> After I fixed that and continue as I intended, then there is another
> bomb-out, when git-svn complains about a git commit message of mine
> (with minor edit):
> -------------
> Running
> perl -pi -e 's(sometag="original")(sometag="replacement")' directory/*
> -------------
> being empty. On hind-sight, it is probably not a good idea to have
> perl regular expression code within a commit message (git-svn itself
> being in perl), but complaining about a non-empty commit message (and
> seem to be a valid one, no strange utf8/chinese characters, etc) being
> empty seems to be a bug.

Just adding to this part: it appears that git-svn doesn't like the first-line of the commit message being just one word (in this case, "Running"). I have just done one where the commit message was a single word "renaming" (it would be obvious which file I was renaming, so I thought there is no need to say more), which also caused git-svn dcommit to complain about it being empty.

Many thanks for git-svn - as I wrote below, I wouldn't use anything else these days.

Show 6 quoted lines
> Hope this helps. BTW, git-svn is a great tool, and thanks a lot for
> that - I wouldn't use anything else (including the "authentic" svn
> client) to interact with svn repositories these days.
>
> Hin-Tak
>
Previous: Hin-Tak LeungNext: Eric Wong
Message 2 of 3 in “git-svn dcommit losing/detaching head when commit message empty”
  1. Hin-Tak LeungFeb 24, 2011
  2. Hin-Tak LeungFeb 24, 2011
  3. Eric WongFeb 27, 2011

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.