commit | fe827270782870ec05af0db574017fde1bd6a99b | [log] [tgz] |
---|---|---|
author | Kabir Oberai <oberai.kabir@gmail.com> | Sun Sep 04 16:02:53 2022 -0400 |
committer | Kabir Oberai <oberai.kabir@gmail.com> | Sun Sep 04 16:02:53 2022 -0400 |
tree | e0f4aa1fbe487f8212be31b1dd9152162a837372 | |
parent | 0d9c35a2e6bcabfc258c61c90d30007816da8ef4 [diff] |
Allow using limd as a submodule
diff --git a/git-version-gen b/git-version-gen index 3eb6a42..f6cb31c 100755 --- a/git-version-gen +++ b/git-version-gen
@@ -3,7 +3,7 @@ if test -n "$1"; then VER=$1 else - if test -d "${SRCDIR}/.git" && test -x "`which git`" ; then + if test -r "${SRCDIR}/.git" && test -x "`which git`" ; then git update-index -q --refresh if ! VER=`git describe --tags --dirty 2>/dev/null`; then COMMIT=`git rev-parse --short HEAD`