Skip to content

Commit

Permalink
SDK-5590: Ignore empty lines in diff (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok committed Nov 24, 2023
1 parent 260fd22 commit 2ee6778
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'],
);

return implode(PHP_EOL, $gitDiffOutput);
Expand Down

0 comments on commit 2ee6778

Please sign in to comment.