Skip to content
Snippets Groups Projects
Commit 22be8670 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use double-quotes for Windows cmd.exe compatibilty

parent aa314973
No related branches found
No related tags found
No related merge requests found
Pipeline #6082 passed
@git log -1 HEAD --format="#define GIT_HASH \"%%h\"" > git_hash.h
@git log -1 HEAD --format="#define GIT_DATE \"%%cd\"" '--date=format-local:%%b %%e %%Y %%H:%%M' >> git_hash.h
@git log -1 HEAD --format="#define GIT_DATE \"%%cd\"" "--date=format-local:%%b %%e %%Y %%H:%%M" >> git_hash.h
@echo #define GIT_BRANCH ^"| tr -d "\r\n" > git_branch.h
@git rev-parse --abbrev-ref HEAD | tr -d "\n" >> git_branch.h
@echo ^" >> git_branch.h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment