aboutsummaryrefslogtreecommitdiffstats
path: root/main/iw/iw-git-version.patch
blob: 0286eb488931050eb29a1d51a626b423a1ca96dc (plain)
1
2
3
4
5
6
7
8
9
10
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)