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

git fast-export bug when using rename detection and paths contain spaces

From
Jay Soffian <jaysoffian@gmail.com>
Date
Jun 25, 2012, 19:31 UTC
Message-ID
<CAG+J_DzGyog-pZrVzuxom0HfdBnf0MvbCMdNYNdaC=dFA31mRA@mail.gmail.com>
Repro:

git init temp-repo && cd temp-repo && echo foo > "foo file" && git add "foo file" && git commit -m foo && git mv "foo file" "bar file" && git commit -m "rename foo to bar" && git fast-export -C -M HEAD | grep ^R

Outputs:
  R foo file bar file
It should output:
  R "foo file" "bar file"

This was allegedly fixed by 6280dfdc3b (fast-export: quote paths in output, 2011-08-05). It seems that that commit expects quote_c_style to output surrounded quotes when the path contains spaces, but both empirically and from my quick look at quote_c_style, it doesn't seem that the function does that.

Sadly, I don't have time to submit a fix ATM.
j.
Message 1 of 1 in “git fast-export bug when using rename detection and paths contain spaces”
  1. Jay SoffianJun 25, 2012

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.