git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Julian Phillips <julian@quantumfyre.co.uk>
Cc: Michael Gebetsroither <gebi@sbox.tugraz.at>, git@vger.kernel.org
Subject: Re: [bug] git-add won't add foo/.git/bar
Date: Mon, 24 Mar 2008 17:11:58 -0700	[thread overview]
Message-ID: <7v1w5zslv5.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0803242359230.24262@kaos.quantumfyre.co.uk> (Julian Phillips's message of "Tue, 25 Mar 2008 00:01:53 +0000 (GMT)")

Julian Phillips <julian@quantumfyre.co.uk> writes:

> On Tue, 25 Mar 2008, Michael Gebetsroither wrote:
>
>> hi,
>>
>> % git-add -f foo/.git/bar
>> fatal: unable to add foo/.git/bar to index
>
> Well, git won't allow .git as a element anywhere in the path, when we
> should only care about the _first_ one - and also, if you use
> --git-dir=banana then we still check for '.git' ... oops.

That's not how git-dir is supposed to used, so there is no oops.

Also it is false that we should only care about the first one.  Think
submodules.

  reply	other threads:[~2008-03-25  0:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-24 23:55 [bug] git-add won't add foo/.git/bar Michael Gebetsroither
2008-03-25  0:01 ` Julian Phillips
2008-03-25  0:11   ` Junio C Hamano [this message]
2008-03-25  0:23     ` Julian Phillips
2008-03-25  0:32     ` Junio C Hamano
2008-03-25  0:55       ` Julian Phillips
2008-03-25  1:10         ` [PATCH] Documentation/git.txt: Mention unsupported use of --git-dir/GIT_DIR Julian Phillips
2008-03-25  0:47     ` [bug] git-add won't add foo/.git/bar Michael Gebetsroither
2008-03-25  1:42       ` Julian Phillips
2008-03-26 19:22         ` Michael Gebetsroither

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

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

  git send-email \
    --in-reply-to=7v1w5zslv5.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=gebi@sbox.tugraz.at \
    --cc=git@vger.kernel.org \
    --cc=julian@quantumfyre.co.uk \
    /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.
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 NNTP newsgroup(s).