Skip to content

Commit c1149f7

Browse files
committed
build: if there's no recent git tag, don't spew error messages
1 parent 16341cc commit c1149f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/genbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/
2222

2323
# if latest commit is tagged and not dirty, then override using the tag name
2424
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
25-
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC)" ]; then
25+
if [ "$(git rev-parse HEAD)" = "$(git rev-list -1 $RAWDESC 2>/dev/null)" ]; then
2626
git diff-index --quiet HEAD -- && DESC=$RAWDESC
2727
fi
2828

0 commit comments

Comments
 (0)