diff --git a/packages/network/rsync/patches/rsync-0001-don-t-set-RSYNC-GITVER.patch b/packages/network/rsync/patches/rsync-0001-don-t-set-RSYNC-GITVER.patch index ecb7f4791b..d0265a91f5 100644 --- a/packages/network/rsync/patches/rsync-0001-don-t-set-RSYNC-GITVER.patch +++ b/packages/network/rsync/patches/rsync-0001-don-t-set-RSYNC-GITVER.patch @@ -1,11 +1,25 @@ ---- a/mkgitver 2021-10-01 21:17:53.000000000 +0000 -+++ b/mkgitver 2022-08-15 02:11:06.553999692 +0000 -@@ -1,7 +1,7 @@ +From 68b1ce1dc3605a8b79594ba5e8e29577ea6dc42c Mon Sep 17 00:00:00 2001 +From: Wayne Davison +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 srcdir=`dirname $0` -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 touch git-version.h