Skip to content

Commit d92a758

Browse files
committed
Fix git command for repo containing HEAD file
1 parent d795b20 commit d92a758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitInfo.macro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const parsedGitLog = (() => {
77
const commit = {};
88
// only the commit message can have multiple lines. Make sure to always add at the end:
99
// 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';
10+
let gitCommand = 'git log --format=%D%n%h%n%H%n%cI%n%B -n 1 HEAD --';
1111
if (process.platform === 'win32') {
1212
gitCommand = gitCommand.replace(/%/g, '^%'); // need to escape percents in batch
1313
}

0 commit comments

Comments
 (0)