Skip to content


Subversion checkout URL

You can clone with
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...
1 parent 89d32b2 commit f90a976632e31dc9e13914ba03baf679f124b927 @ivarne ivarne committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 base/
11 base/
@@ -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"
+if [ -z "$fork_master_distance" ]; then
+ fork_master_distance="-1"
+if [ -z "$fork_master_timestamp" ]; then
+ fork_master_timestamp="0"
echo "const GIT_VERSION_INFO = GitVersionInfo("
echo " \"$commit\","
echo " \"$commit_short\","

0 comments on commit f90a976

Please sign in to comment.
Something went wrong with that request. Please try again.