gnucash maint: Properly detect git in case of linked worktree
Geert Janssens
gjanssens at code.gnucash.org
Thu Mar 1 12:22:34 EST 2018
Updated via https://github.com/Gnucash/gnucash/commit/a64e40da (commit)
from https://github.com/Gnucash/gnucash/commit/ee217c61 (commit)
commit a64e40dac33bdf1ca2a6d8f280724f08ad2b48ae
Author: Geert Janssens <geert at kobaltwit.be>
Date: Sun Feb 18 19:53:29 2018 +0100
Properly detect git in case of linked worktree
diff --git a/util/gnc-vcs-info b/util/gnc-vcs-info
index 803d905..1e5658c 100755
--- a/util/gnc-vcs-info
+++ b/util/gnc-vcs-info
@@ -95,7 +95,7 @@ fi
# Maybe it's git?
real_gitdir="${real_srcdir}"/.git
-if test -d "${real_gitdir}"
+if test -d "${real_gitdir}" || test -e "${real_gitdir}"
then
# If we're only interested in the vcs type, then we're done here
if [ "$request" = "type" ]
Summary of changes:
util/gnc-vcs-info | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list