mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-03 16:13:36 +08:00
* fix(cmake): Commit messages may have "quotes" in them, which can affect the const char* variable. (#1840)
This commit is contained in:
parent
f593d85af6
commit
045961729f
@ -23,6 +23,9 @@ if(Git_FOUND)
|
|||||||
OUTPUT_VARIABLE GIT_COMMIT_SUBJECT
|
OUTPUT_VARIABLE GIT_COMMIT_SUBJECT
|
||||||
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
|
||||||
|
# Commit messages may have quotes in them, which can affect the const char* variable.
|
||||||
|
string(REPLACE "\"" "\\\"" GIT_COMMIT_SUBJECT "${GIT_COMMIT_SUBJECT}")
|
||||||
|
|
||||||
# branch name
|
# branch name
|
||||||
execute_process(COMMAND
|
execute_process(COMMAND
|
||||||
"${GIT_EXECUTABLE}" branch --show-current
|
"${GIT_EXECUTABLE}" branch --show-current
|
||||||
|
Loading…
x
Reference in New Issue
Block a user