git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Nathan Collins <nathan.collins@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: [BUG?] Spaces not allowed in directory names in .git/info/attributes
Date: Mon, 23 May 2016 13:30:21 -0700	[thread overview]
Message-ID: <xmqqmvng8qle.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <CAO8RVveOwrS6+pTnHY36d1Nk_B_VJD022W9i8STnNb-KyMkqNg@mail.gmail.com> (Nathan Collins's message of "Mon, 23 May 2016 12:06:27 -0700")

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.

  reply	other threads:[~2016-05-23 20:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-23 19:06 [BUG?] Spaces not allowed in directory names in .git/info/attributes Nathan Collins
2016-05-23 20:30 ` Junio C Hamano [this message]
2016-05-24  1:37   ` Duy Nguyen
2016-05-24 22:54     ` Junio C Hamano
2016-05-25 21:56     ` Junio C Hamano
2016-05-24 23:30   ` Nathan Collins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqmvng8qle.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=nathan.collins@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).