Skip to content

Commit

Permalink
base/version_git.sh: fix the default value for `Base.GIT_VERSION_IN…
Browse files Browse the repository at this point in the history
…FO` (for e.g. when Git is not available)
  • Loading branch information
DilumAluthge committed Jan 8, 2022
1 parent acb6e16 commit f7c48c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/version_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cd $1
if [ "$#" = "2" -a "$2" = "NO_GIT" ]; then
# this comment is used in base/Makefile to distinguish boilerplate
echo "# Default output if git is not available."
echo "const GIT_VERSION_INFO = GitVersionInfo(\"\" ,\"\" ,\"\" ,0 ,\"\" ,true ,0 ,0.)"
echo "const GIT_VERSION_INFO = GitVersionInfo(\"\", \"\", \"\", 0, \"\", true, 0, 0.0, \"\", \"\")"
exit 0
fi
# Collect temporary variables
Expand Down Expand Up @@ -101,7 +101,7 @@ echo " $build_number,"
echo " \"$date_string\","
echo " $tagged_commit,"
echo " $fork_master_distance,"
echo " $fork_master_timestamp.,"
echo " $fork_master_timestamp.0,"
echo " \"$build_system_commit\","
echo " \"$build_system_commit_short\","
echo ")"

0 comments on commit f7c48c9

Please sign in to comment.