mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
12 lines
299 B
Diff
12 lines
299 B
Diff
--- ./version.sh.orig
|
|
+++ ./version.sh
|
|
@@ -5,7 +5,7 @@
|
|
|
|
echo '#include "iw.h"' > "$OUT"
|
|
|
|
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
|
|
+if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
|
|
git update-index --refresh --unmerged > /dev/null
|
|
descr=$(git describe)
|
|
|