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

Re: Malformed branch name in fast-export when specifying non-HEAD/branch revision

From
Elijah Newren <newren@gmail.com>
Date
Aug 17, 2011, 19:36 UTC
Message-ID
<CABPp-BFRZMZjhWuUUeD7Oa1HbWQMnZot7dRm3zKOpCoj_QwZeg@mail.gmail.com>
In-Reply-To
<CAORuUR154Dhg5vDojga-01bDxxf+=R2X-oJK-0417CgmqxCwvA@mail.gmail.com>
Hi,
On Wed, Aug 17, 2011 at 10:21 AM, Owen Stephens <git@owenstephens.co.uk> wrote:
Show 27 quoted lines
> fast-export gives an invalid branch name for commits, if the revision specified
> is not HEAD or a branch name.
>
> $ git --version
> git version 1.7.6
>
> $ # Create
> $ git init export_test && cd export_test
> $ touch a && git add a && git commit -m 'Add a'
> $ touch b && git add b && git commit -m 'Add b'
> $ git branch branch1
>
> $ # ok
> $ git fast-export HEAD
>
> $ # also ok
> $ git fast-export branch1
>
> $ # uses HEAD~1 instead of refs/heads/master
> $ git fast-export HEAD~1
>
> blob
> mark :1
> data 0
>
> reset HEAD~1
> commit HEAD~1

Thanks for the report. It turns out this bug has been reported and is in the testsuite as t9350.19 -- currently marked as expected to fail. I looked at the problem a couple years ago for a little bit but never finished that particular patch and never got back around to it.

Previous: Owen StephensNext: Junio C Hamano
Message 2 of 11 in “Malformed branch name in fast-export when specifying non-HEAD/branch revision”
  1. Owen StephensAug 17, 2011
  2. Elijah NewrenAug 17, 2011
  3. Junio C HamanoAug 17, 2011
  4. Jeff KingAug 17, 2011
  5. Sverre RabbelierAug 21, 2011
  6. Jeff KingAug 22, 2011
  7. Sverre RabbelierAug 22, 2011
  8. Jeff KingAug 22, 2011
  9. Sverre RabbelierAug 22, 2011
  10. Junio C HamanoAug 22, 2011
  11. Jeff KingAug 22, 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.