Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #5587 (quickfix)

Check that the numbers from git are not empty strings before pasting
them into `version_git.jl`.
  • Loading branch information...
commit f90a976632e31dc9e13914ba03baf679f124b927 1 parent 89d32b2
@ivarne ivarne authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 base/version_git.sh
View
11 base/version_git.sh
@@ -49,6 +49,17 @@ fi
fork_master_distance=$(git rev-list --count HEAD ^"$(echo $origin)master")
fork_master_timestamp=$(git show -s $(git merge-base HEAD $(echo $origin)master) --format=format:"%ct")
+# Check for errrors and emit default value for missing numbers.
+if [ -z "$build_number" ]; then
+ build_number="0"
+fi
+if [ -z "$fork_master_distance" ]; then
+ fork_master_distance="-1"
+fi
+if [ -z "$fork_master_timestamp" ]; then
+ fork_master_timestamp="0"
+fi
+
echo "const GIT_VERSION_INFO = GitVersionInfo("
echo " \"$commit\","
echo " \"$commit_short\","
Please sign in to comment.
Something went wrong with that request. Please try again.