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

Re: [BUG?] Spaces not allowed in directory names in .git/info/attributes

From
Nathan Collins <nathan.collins@gmail.com>
Date
May 24, 2016, 23:30 UTC
Message-ID
<CAO8RVve07Gvr2Bes2Dp-08_8MSQoVcBm9gjMaKTU=uAXcY_1wQ@mail.gmail.com>
In-Reply-To
<xmqqmvng8qle.fsf@gitster.mtv.corp.google.com>
On Mon, May 23, 2016 at 1:30 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Nathan Collins <nathan.collins@gmail.com> writes:
>
>> Example session:
>>
>>     $ git init test.git
>>     Initialized empty Git repository in /tmp/test.git/.git/
>>     $ cd test.git
>>     $ mkdir "dir name"
>>     $ touch dir\ name/file.txt
>>     $ echo "dir\\ name/file.txt -text -whitespace" >> .git/info/attributes
>>     $ git add dir\ name/file.txt
>>     name/file.txt is not a valid attribute name: .git/info/attributes:1
>
> That's because spaces are not allowed in paths there.
>
>         echo "dir?name/file.txt -text" >.git/info/attributes
>
> may be an easy workaround for now.
Thanks, I'll use the workaround,
-nathan
Previous: Junio C Hamano
Message 6 of 6 in “[BUG?] Spaces not allowed in directory names in .git/info/attributes”
  1. Nathan CollinsMay 23, 2016
  2. Junio C HamanoMay 23, 2016
  3. Duy NguyenMay 24, 2016
  4. Junio C HamanoMay 24, 2016
  5. Junio C HamanoMay 25, 2016
  6. Nathan CollinsMay 24, 2016

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.