diff options
Diffstat (limited to 'src/bulk_ln.c')
| -rw-r--r-- | src/bulk_ln.c | 2 |
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:?}" \ |
