Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
suggested by Simon Mudd

Signed-off-by: Scott Lanning <[email protected]>
  • Loading branch information
Scott Lanning committed Dec 13, 2018
1 parent 0f9cc1e commit 60ed1bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/build_version_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $DIR/shell_functions.inc

# Normal builds run directly against the git repo, but when packaging (for example with rpms)
# a tar ball might be used, which will prevent the git metadata from being available.
# Should this be the case then allow environment variables to be used to source
# this information instead.
_build_git_rev=$(git rev-parse --short HEAD)
if [ -z "$_build_git_rev" ]; then
_build_git_rev="$BUILD_GIT_REV"
Expand Down

0 comments on commit 60ed1bf

Please sign in to comment.