set work-tree explicitly
See https://stackoverflow.com/questions/1386291/git-git-dir-not-working-as-expected
Note that starting from git 1.8.5
it's possible to use -C
option which basically replaces --git-dir
and --work-tree
. Currently we have 1.8.3.1
on centos7
.