Skip to content

Commit

Permalink
SDK-5590: Ignore empty lines in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok committed Nov 23, 2023
1 parent 260fd22 commit 5f1999d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VersionControlSystem/GitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getHeadHashCommit(): string
public function getDiff(string $originalBranch, string $currentBranch): string
{
$gitDiffOutput = $this->execute(
['diff', $originalBranch . '..' . $currentBranch],
['diff', $originalBranch . '..' . $currentBranch, '--ignore-blank-lines'],

Check warning on line 41 in src/VersionControlSystem/GitRepository.php

View check run for this annotation

Codecov / codecov/patch

src/VersionControlSystem/GitRepository.php#L41

Added line #L41 was not covered by tests
);

return implode(PHP_EOL, $gitDiffOutput);
Expand Down

0 comments on commit 5f1999d

Please sign in to comment.