rev-parse --is-bare-repository incorrect when work tree is set

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

 



rev-parse --is-bare-repository incorrectly outputs "false" when testing
a bare repository with the work tree set.

To reproduce:

$ git init --bare testbare
$ git --git-dir=testbare rev-parse --is-bare-repository
true
$ git --git-dir=testbare --work-tree=something rev-parse \
--is-bare-repository
false
$ GIT_WORK_TREE=something git --git-dir=testbare rev-parse \
--is-bare-repository
false



[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]

  Powered by Linux