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

git-fast-import question

From
Troy Telford <ttelford.groups@gmail.com>
Date
Jul 29, 2009, 22:36 UTC
Message-ID
<1e30a6d10907291536y3ec68caq8788aef2b7c34a6f@mail.gmail.com>

I've been writing an importer from an older SCM into git. I'm getting the following behavior with using git-fast-import:

The file I'm importing has something along the lines of:

commit refs/heads/foo <various metadata> M 100644 :mark path/to/some/file

Then, later on, there's another commit:

commit refs/heads/foo <various metadata> R path/to/some/file new/path/to/some/file

As far as I've been able to see, the :from tag points to the correct commit (which is also in the correct branch). There are no instances of 'reset <branch>' being called anywhere. The file isn't deleted anywhere.

But when I run fast-import, I receive an error to the extent of: fatal: Path path/to/some/file not in branch

So to me, it looks like the file that I'm renaming should exist in the branch - it's not being renamed anywhere, not being deleted, and the branch isn't reset. Yet fast-import doesn't seem to think the file exists.

I'm using git 1.6.3.3
Next: Shawn O. Pearce
Message 1 of 3 in “git-fast-import question”
  1. Troy TelfordJul 29, 2009
  2. Shawn O. PearceJul 29, 2009
  3. Troy TelfordJul 30, 2009

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.