Skip to content

Commit

Permalink
_setversion.sh: allow/ignore another git tag failure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed Mar 8, 2018
1 parent 0c4f3d1 commit 49be82e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oar-build/_setversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ function get_tag {
#opts=
errfile=/tmp/git-describe-$$_err.txt
git describe $opts 2> $errfile || {
grep -qs 'No names found' $errfile || {
grep -qs 'No names found' $errfile || \
grep -qs 'No tags can describe' $errfile || \
{
echo setversion: git describe failed: 1>&2
cat $errfile 1>&2
rm $errfile
Expand Down

0 comments on commit 49be82e

Please sign in to comment.