Skip to content

Commit 0ffb5b9

Browse files
Merge pull request #23 from vasiliy0s/fix/git-command-doenst-run-inside-docker-with-head-file
Fix git command for repo containing HEAD file
2 parents d795b20 + d92a758 commit 0ffb5b9

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)