commit 884413b48871361cf6c0cfa41d01c22ed1ec8d30
Author: Paymon MARANDI <[email protected]>
AuthorDate: Tue Dec 3 15:25:09 2024 -0500
Commit: Oswald Buddenhagen <[email protected]>
CommitDate: Wed Dec 4 17:20:49 2024 +0100
build: also consider builds off of git with `git clone --depth 1`
one case where this could happen is a shallow clone, purely for build
purposes. in source based distros, like gentoo, setting depth of the
clone to 1, globally, is a common configuration. this patch avoids that
those builds fail.
Signed-off-by: Paymon MARANDI <[email protected]>
version.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/version.sh b/version.sh
index fc1ed7d..669f1b6 100755
--- a/version.sh
+++ b/version.sh
@@ -17,12 +17,12 @@ if test -z "$mb"; then
fi
if test -z "$mb"; then
# still no upstream, so just describe HEAD as-is.
- gver=$(git describe --tags HEAD)
+ gver=$(git describe --always --tags HEAD)
else
# find out whether we have local work, and if so, collapse it into
# a single suffix. otherwise, we'd cause pointless rebuilds during
# development.
- gver=$(git describe --tags $mb)
+ gver=$(git describe --always --tags $mb)
lcl=$(git rev-list -n 1 $mb..HEAD)
if test -n "$lcl"; then
gver="$gver-plus"
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel