Skip to content

Commit

Permalink
[git] Fixed duplicated entries for git history on merge operations
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bozzini <federico.bozzini@gmail.com>
  • Loading branch information
federicobozzini committed Feb 25, 2020
1 parent 2ef80c0 commit fc98cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/git/src/node/dugite-git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ export class DugiteGit implements Git {
args.push('--first-parent');
}
const range = this.mapRange((options || {}).range);
args.push(...[range, '-C', '-M', '-m']);
args.push(...[range, '-C', '-M', '-m', '--first-parent']);
const maxCount = options && options.maxCount ? options.maxCount : 0;
if (Number.isInteger(maxCount) && maxCount > 0) {
args.push(...['-n', `${maxCount}`]);
Expand Down

0 comments on commit fc98cb6

Please sign in to comment.