Skip to content

Commit

Permalink
Merge pull request #1408 from snyk/fix/cli-dev-count-use-no-merge-in-…
Browse files Browse the repository at this point in the history
…git-log

Fix/cli dev count use no merge in git log
  • Loading branch information
maxjeffos committed Sep 15, 2020
2 parents 5b3ea60 + 09646bf commit 481ea44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/monitor/dev-count-analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function runGitLog(
fnShellout: (cmd: string, workingDirectory: string) => Promise<string>,
): Promise<string> {
try {
const gitLogCommand = `git --no-pager log --pretty=tformat:"%H${SERIOUS_DELIMITER}%an${SERIOUS_DELIMITER}%ae${SERIOUS_DELIMITER}%aI" --after="${timestampEpochSecondsStartOfPeriod}"`;
const gitLogCommand = `git --no-pager log --no-merges --pretty=tformat:"%H${SERIOUS_DELIMITER}%an${SERIOUS_DELIMITER}%ae${SERIOUS_DELIMITER}%aI" --after="${timestampEpochSecondsStartOfPeriod}"`;
const gitLogStdout: string = await fnShellout(gitLogCommand, repoPath);
return gitLogStdout;
} catch {
Expand Down
File renamed without changes.

0 comments on commit 481ea44

Please sign in to comment.