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

Re: git format-patch shell quoting bug

From
Junio C Hamano <junkio@cox.net>
Date
Jan 7, 2006, 02:38 UTC
Message-ID
<7vhd8gpxt3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060104045519.GB29515@quicksilver.road.mcmartin.ca>
Kyle McMartin <kyle@mcmartin.ca> writes:
Show 8 quoted lines
> There's apparently a quoting bug in git-format-patch. When I import
> a patch with apply-mbox, for example
>
> From: Carlos O'Donell <carlos@parisc-linux.org>
>
> The author field is correctly set, including the "'" in Carlos' name.
> ...
> I believe this recently crept in, as I don't recall seeing it before.
Thanks for spotting this.

There was a similar problem with "git-commit -c". I think I got both of them right with commit aa66c7:

    commit aa66c7ec77d474b737da607d6cb2d07f56628def
    Author: Junio C Hamano <junkio@cox.net>
    Date:   Thu Jan 5 19:50:37 2006 -0800
        format-patch/commit: Quote single quote in the author name properly.
        Noticed by Kyle McMartin.
        Signed-off-by: Junio C Hamano <junkio@cox.net>

The bug was present ever since format-patch started picking up the original authorship information from the commits, done on July 22nd last year, between v0.99.1 and v0.99.2.

Previous: Kyle McMartinNext: Kyle McMartin
Message 2 of 3 in “git format-patch shell quoting bug”
  1. Kyle McMartinJan 4, 2006
  2. Junio C HamanoJan 7, 2006
  3. Kyle McMartinJan 7, 2006

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.