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.