diff options
Diffstat (limited to 'main/iw/iw-git-version.patch')
-rw-r--r-- | main/iw/iw-git-version.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/iw/iw-git-version.patch b/main/iw/iw-git-version.patch new file mode 100644 index 0000000000..0286eb4889 --- /dev/null +++ b/main/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) + |