Re: Need to set GIT_WORK_TREE when setting GIT_DIR !?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frédéric Heitzmann  <frederic.heitzmann@xxxxxxxxx> 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).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]