Skip to content

Commit 709bc5c

Browse files
authored
base/version_git.sh: fix the default value for Base.GIT_VERSION_INFO (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
1 parent 7499513 commit 709bc5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/version_git.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cd $1
2424
if [ "$#" = "2" -a "$2" = "NO_GIT" ]; then
2525
# this comment is used in base/Makefile to distinguish boilerplate
2626
echo "# Default output if git is not available."
27-
echo "const GIT_VERSION_INFO = GitVersionInfo(\"\" ,\"\" ,\"\" ,0 ,\"\" ,true ,0 ,0.)"
27+
echo 'const GIT_VERSION_INFO = GitVersionInfo("", "", "", 0, "", true, 0, 0.0, "", "")'
2828
exit 0
2929
fi
3030
# Collect temporary variables
@@ -101,7 +101,7 @@ echo " $build_number,"
101101
echo " \"$date_string\","
102102
echo " $tagged_commit,"
103103
echo " $fork_master_distance,"
104-
echo " $fork_master_timestamp.,"
104+
echo " $fork_master_timestamp.0,"
105105
echo " \"$build_system_commit\","
106106
echo " \"$build_system_commit_short\","
107107
echo ")"

0 commit comments

Comments
 (0)