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

We need to double-up the percents in batch lingo

parent 2d9e042b
Branches
Tags
1 merge request!455Update branch with changes from master
@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.
Please register or to comment