mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
rsync: update to upstream patch for 3.2.5
This commit is contained in:
parent
2d00c4a6f9
commit
84471975ce
@ -1,11 +1,25 @@
|
|||||||
--- a/mkgitver 2021-10-01 21:17:53.000000000 +0000
|
From 68b1ce1dc3605a8b79594ba5e8e29577ea6dc42c Mon Sep 17 00:00:00 2001
|
||||||
+++ b/mkgitver 2022-08-15 02:11:06.553999692 +0000
|
From: Wayne Davison <wayne@opencoder.net>
|
||||||
@@ -1,7 +1,7 @@
|
Date: Mon, 15 Aug 2022 21:52:13 -0700
|
||||||
|
Subject: [PATCH] Only run git describe if .git exists in the $srcdir.
|
||||||
|
|
||||||
|
---
|
||||||
|
mkgitver | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/mkgitver b/mkgitver
|
||||||
|
index 49aa150b..43156c65 100755
|
||||||
|
--- a/mkgitver
|
||||||
|
+++ b/mkgitver
|
||||||
|
@@ -1,7 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
srcdir=`dirname $0`
|
||||||
-gitver=`git describe --abbrev=8 2>/dev/null`
|
-gitver=`git describe --abbrev=8 2>/dev/null`
|
||||||
+gitver=""
|
+
|
||||||
|
+if [ -e "$srcdir/.git" ]; then
|
||||||
|
+ gitver=`git describe --abbrev=8 2>/dev/null`
|
||||||
|
+fi
|
||||||
|
|
||||||
if [ ! -f git-version.h ]; then
|
if [ ! -f git-version.h ]; then
|
||||||
touch git-version.h
|
touch git-version.h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user