Skip to content

Commit

Permalink
git-version-gen: Fail on UNKNOWN version
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
  • Loading branch information
jfriesse committed Sep 3, 2018
1 parent 0b0f32c commit 83fec6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build-aux/git-version-gen
Expand Up @@ -160,6 +160,14 @@ else
fi
fi

if test "$v" = "UNKNOWN"
then
echo "$0: ERROR: Can't find valid version. Please use valid git repository," \
"released tarball or version tagged archive" 1>&2

exit 1
fi

v=`echo "$v" |sed 's/^v//'`

# Don't declare a version "dirty" merely because a time stamp has changed.
Expand Down

0 comments on commit 83fec6a

Please sign in to comment.