We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d795b20 + d92a758 commit 0ffb5b9Copy full SHA for 0ffb5b9
src/GitInfo.macro.js
@@ -7,7 +7,7 @@ const parsedGitLog = (() => {
7
const commit = {};
8
// only the commit message can have multiple lines. Make sure to always add at the end:
9
// The format is specified in https://git-scm.com/docs/git-log#_pretty_formats
10
- let gitCommand = 'git log --format=%D%n%h%n%H%n%cI%n%B -n 1 HEAD';
+ let gitCommand = 'git log --format=%D%n%h%n%H%n%cI%n%B -n 1 HEAD --';
11
if (process.platform === 'win32') {
12
gitCommand = gitCommand.replace(/%/g, '^%'); // need to escape percents in batch
13
}
0 commit comments