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

Re: fast-import bug?

From
John Keeping <john@keeping.me.uk>
Date
Jun 23, 2013, 14:55 UTC
Message-ID
<20130623145503.GH4676@serenity.lan>
In-Reply-To
<m2ppvc29le.fsf@cube.gateway.2wire.net>
On Sun, Jun 23, 2013 at 07:19:25AM -0700, Dave Abrahams wrote:
Show 11 quoted lines
> on Sun Jun 23 2013, John Keeping <john-AT-keeping.me.uk> wrote:
> > In this case, I think I do now understand why the mode is 0: in
> > parse_ls a new tree object is created and the SHA1 of the original is
> > copied in but the mode is left blank; clearly this should be set to
> > S_IFDIR when the SHA1 is non-null.
> >
> > I think the patch I now have is correct (and addresses the "copy from
> > root" scenario), but I need to spend some time understanding t9300 so
> > that I can add suitable test cases.
> 
> t9300?  

t/t9300-fast-import.sh in Git's source tree - it's where the tests for fast-import live.

> Thanks; I'll try this one too.

Thanks. I now have a patch series incorporating this which also adds a few tests for handling of empty paths. I'm sending it out in the next few minutes.

Previous: Dave Abrahams
Message 6 of 6 in “fast-import bug?”
  1. Dave AbrahamsJun 21, 2013
  2. John KeepingJun 22, 2013
  3. Dave AbrahamsJun 23, 2013
  4. John KeepingJun 23, 2013
  5. Dave AbrahamsJun 23, 2013
  6. John KeepingJun 23, 2013

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.