From: "Carlos Martín Nieto" <carlos@cmartin.tk>
To: Junio C Hamano <gitster@pobox.com>
Cc: John Twilley <mathuin@gmail.com>, git@vger.kernel.org
Subject: Re: BUG: "--work-tree blah" does not imply "--git-dir blah/.git" or fix misleading error message
Date: Wed, 30 Nov 2011 20:42:33 +0100 [thread overview]
Message-ID: <20111130194233.GD12096@centaur.lab.cmartin.tk> (raw)
In-Reply-To: <7vaa7dquva.fsf@alter.siamese.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
On Wed, Nov 30, 2011 at 11:21:29AM -0800, Junio C Hamano wrote:
> subdirectory "blah/.git"), but I do not think this is likely to change, as
> I suspect that people and scripts are relying on the current behaviour to
> be able to do something like this:
>
> cd /pub/scm/git/git.git ;# this is a bare repository
> mkdir /var/tmp/git
> git --work-tree=/var/tmp/git checkout
>
This is in fact the way that many (or from what I can see the most
popular) tutorials for abusing git as a deployment system tell you to
run it (though more often than not setting GIT_WORKTREE in the
environment).
cmn
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2011-11-30 19:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 17:43 BUG: "--work-tree blah" does not imply "--git-dir blah/.git" or fix misleading error message John Twilley
2011-11-30 18:22 ` Carlos Martín Nieto
2011-11-30 19:13 ` John Twilley
2011-12-01 14:30 ` Carlos Martín Nieto
2011-11-30 19:21 ` Junio C Hamano
2011-11-30 19:42 ` Carlos Martín Nieto [this message]
2011-11-30 20:45 ` Junio C Hamano
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=20111130194233.GD12096@centaur.lab.cmartin.tk \
--to=carlos@cmartin.tk \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mathuin@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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.