Re: Need to set GIT_WORK_TREE when setting GIT_DIR !?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2012, 23:06 UTC
- Message-ID
- <7v4ntx4bol.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CALeToSUaPzdr=u7FfwHEtEanphVP5LZ09QdQXno52PLBTK0H-g@mail.gmail.com>
Frédéric Heitzmann <frederic.heitzmann@gmail.com> writes:
Yes, to the question on the Subject line. But you can also say
[core] worktree = /path/to/the/work/tree
in $GIT_DIR/config. Make sure your $GIT_DIR/config does *NOT* say that the repository is a bare repository.
> ... > Note: that using --git-dir instead of GIT_DIR give the same errors.
Yes, that is the intended behaviour; the command line option and the environment variable should give you the same consistent effect).