File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5791,9 +5791,9 @@ HAS_GIT=no-repository
5791
5791
fi
5792
5792
if test $HAS_GIT = found
5793
5793
then
5794
- GITVERSION=" git -C \$ (srcdir) rev-parse --short HEAD"
5795
- GITTAG=" git -C \$ (srcdir) describe --all --always --dirty"
5796
- GITBRANCH=" git -C \$ (srcdir) name-rev --name-only HEAD"
5794
+ GITVERSION=" git --git-dir \$ (srcdir)/.git rev-parse --short HEAD"
5795
+ GITTAG=" git --git-dir \$ (srcdir)/.git describe --all --always --dirty"
5796
+ GITBRANCH=" git --git-dir \$ (srcdir)/.git name-rev --name-only HEAD"
5797
5797
else
5798
5798
GITVERSION=" "
5799
5799
GITTAG=" "
Original file line number Diff line number Diff line change @@ -1005,9 +1005,9 @@ HAS_GIT=no-repository
1005
1005
fi
1006
1006
if test $HAS_GIT = found
1007
1007
then
1008
- GITVERSION="git -C \$(srcdir) rev-parse --short HEAD"
1009
- GITTAG="git -C \$(srcdir) describe --all --always --dirty"
1010
- GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD"
1008
+ GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
1009
+ GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
1010
+ GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
1011
1011
else
1012
1012
GITVERSION=""
1013
1013
GITTAG=""
You can’t perform that action at this time.
0 commit comments