summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bulk_ln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bulk_ln.c b/src/bulk_ln.c
index f3cda22..a954100 100644
--- a/src/bulk_ln.c
+++ b/src/bulk_ln.c
@@ -29,7 +29,7 @@ do
\
&& if test -z "$PROJECT_VERSION" ;then true \
&& tag="$(git tag|grep -E '^v'|sed -E 's,^v,,'|sort -V|tail -n1)" \
- && cnt="$(git rev-list --count "v${tag:?}"..HEAD)" \
+ && cnt="$(git rev-list --count "v${tag?}"..HEAD 2>/dev/null||true)" \
&& hsh="$(git rev-parse --short HEAD)" \
&& if test -n "$tag" -a -n "$cnt" -a -n "$hsh" ;then true \
&& PROJECT_VERSION="${tag:?}-${cnt:?}-g${hsh:?}" \