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

We need to double-up the percents in batch lingo

parent 5f0c78ed
No related branches found
No related tags found
No related merge requests found
Pipeline #6081 failed
@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