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

git fast-export/import bug with -M -C

From
Juraj Oršulić <juraj.orsulic@fer.hr>
Date
Sep 14, 2017, 22:01 UTC
Message-ID
<CAEPqvoyVJFe2EOvhnZD4vdF=1-VuoZrMP92TeGJ2WAE0X+B5Tw@mail.gmail.com>

The commands should be self explanatory. 0.2.0~20 is the first commit where the reconstructed repository diverges, that commit had a simultaneous copy and edit of one file. It seems that copy/rename detection, enabled with -M -C is confused by this. I reproduced it with git 2.14 next @ 8fa685d.

git clone https://github.com/googlecartographer/cartographer_ros mkdir copy && cd copy && git init (cd ../cartographer_ros; git fast-export --all --date-order -M -C) | git fast-import git rev-parse 0.2.0~20 #2237e1d0a974977fbcb0737dd1fb5876a2b8e29d git rev-parse 0.2.0~21 #cd1276a99ccffcc491d0b2e50296ec04347ba5f2 cd ../cartographer_ros git rev-parse 0.2.0~20 #9d5b221ed41783b15c84bc90b71527194b8d9a49 git rev-parse 0.2.0~21 #cd1276a99ccffcc491d0b2e50296ec04347ba5f2

Next: Juraj Oršulić
Message 1 of 4 in “git fast-export/import bug with -M -C”
  1. Juraj OršulićSep 14, 2017
  2. Juraj OršulićSep 20, 2017
  3. fast-export: do not copy from modified fileJonathan Tan, Sep 20, 2017
  4. Juraj OršulićSep 21, 2017

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.