[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: Re: BUG: "--work-tree blah" does not imply "--git-dir blah/.git" or
From: Junio C Hamano <gitster () pobox ! com>
Date: 2011-11-30 20:45:41
Message-ID: 7v1uspqqyy.fsf () alter ! siamese ! dyndns ! org
[Download RAW message or body]
Carlos MartÃn Nieto <carlos@cmartin.tk> writes:
> 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).
Heh, *ab*using is a good description if they really mean to use it as a
deployment system. For one thing it won't do anything a proper deployment
should do if the target directory is not empty ;-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic