summaryrefslogtreecommitdiffstats
path: root/testing/iw/iw-git-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/iw/iw-git-version.patch')
-rw-r--r--testing/iw/iw-git-version.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/iw/iw-git-version.patch b/testing/iw/iw-git-version.patch
new file mode 100644
index 000000000..0286eb488
--- /dev/null
+++ b/testing/iw/iw-git-version.patch
@@ -0,0 +1,11 @@
+--- ./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)
+