resending as attachment
-- 

               Paymon
>From 12f7418e46310c14c25bcf7b9246e99f5aed4b73 Mon Sep 17 00:00:00 2001
From: Paymon MARANDI <darwinsker...@gmail.com>
Date: Thu, 31 Oct 2024 13:14:43 -0400
Subject: [PATCH] build: also consider builds off of git with `git clone
 --depth 1`

Signed-off-by: Paymon MARANDI <darwinsker...@gmail.com>
---
 version.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/version.sh b/version.sh
index fc1ed7d..8759e3f 100755
--- a/version.sh
+++ b/version.sh
@@ -18,6 +18,11 @@ fi
 if test -z "$mb"; then
        # still no upstream, so just describe HEAD as-is.
        gver=$(git describe --tags HEAD)
+       # one case this could happen is a shallow clone, purely for build
+       # purposes
+       if test -z "$gver"; then
+               gver="git-shallow"
+       fi
 else
        # find out whether we have local work, and if so, collapse it into
        # a single suffix. otherwise, we'd cause pointless rebuilds during
-- 
2.47.1

_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to