On Wed, Mar 4, 2015 at 11:54 AM, Junio C Hamano <[email protected]> wrote:
> Chris Pimlott <[email protected]> writes:
>
>>   folio:text chris$ git --git-dir=../.git describe --always --dirty
>>   c0edd63-dirty
>
> I have a feeling that this is not limited to describe at all.  With
> the --git-dir option, you are telling Git that your GIT_DIR is over
> there and (by not using --work-tree together with that option) you
> are telling Git that you do not want Git to guess where the working
> tree is (instead, you are telling Git that you are at the top of the
> working tree), no?

Ah, my apologies, you are correct.  I was not aware of --work-tree and
didn't realize that specifying --git-dir would turn off the normal
working tree discovery process.  Thanks!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to