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) (#43717)

* `base/version_git.sh`: fix the default value for `Base.GIT_VERSION_INFO` (for e.g. when Git is not available)

* Use single-quotes to avoid the need to backslash-escape the double quotes

(cherry picked from commit 709bc5c)
  • Loading branch information
DilumAluthge authored and KristofferC committed May 16, 2022
1 parent aafae8a commit 008432c
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 008432c

Please sign in to comment.