Skip to content

Commit

Permalink
cmake: git_watcher may put unquoted commit messages (#3022)
Browse files Browse the repository at this point in the history
They cause malformed definition and break build.
  • Loading branch information
DSpeichert authored May 5, 2020
1 parent 7231d9e commit adb68aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions cmake/gitmetadata.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,3 @@

// When HEAD was committed.
#define GIT_COMMIT_DATE_ISO8601 "@GIT_COMMIT_DATE_ISO8601@"

// The subject line for the HEAD commit.
#define GIT_COMMIT_SUBJECT "@GIT_COMMIT_SUBJECT@"
1 change: 0 additions & 1 deletion src/otserv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ void mainLoader(int, char*[], ServiceManager* services)
#if defined(GIT_RETRIEVED_STATE) && GIT_RETRIEVED_STATE
std::cout << STATUS_SERVER_NAME << " - Version " << GIT_DESCRIBE << std::endl;
std::cout << "Git SHA1 " << GIT_SHORT_SHA1 << " dated " << GIT_COMMIT_DATE_ISO8601 << std::endl;
std::cout << "Git message: " << GIT_COMMIT_SUBJECT << std::endl;
#if GIT_IS_DIRTY
std::cout << "*** DIRTY - NOT OFFICIAL RELEASE ***" << std::endl;
#endif
Expand Down

0 comments on commit adb68aa

Please sign in to comment.