summaryrefslogtreecommitdiffstats
path: root/git-version-gen
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-09-05 01:07:42 +0200
committerGravatar Nikias Bassen2022-09-05 01:07:42 +0200
commit6426362e5cbad7284368b7fe70363f6b3251f94c (patch)
treee0524b4f612cedacdb8a5950a151ee17488518b4 /git-version-gen
parent67b2fd6086858905f9ad482f14b38b906a72f69c (diff)
downloadlibusbmuxd-6426362e5cbad7284368b7fe70363f6b3251f94c.tar.gz
libusbmuxd-6426362e5cbad7284368b7fe70363f6b3251f94c.tar.bz2
Allow using libusbmuxd as submodule
Diffstat (limited to 'git-version-gen')
-rwxr-xr-xgit-version-gen2
1 files changed, 1 insertions, 1 deletions
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 @@ SRCDIR=`dirname $0`
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`