mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-05 20:00:55 +01:00
Fix diff command content (#2036)
Fix diff command getContent which returned always empty string because the results were ignored.
This commit is contained in:
2
gradle/changelog/diff_command_content.yaml
Normal file
2
gradle/changelog/diff_command_content.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Diff command content ([#2036](https://github.com/scm-manager/scm-manager/pull/2036))
|
||||
@@ -110,7 +110,7 @@ public final class DiffCommandBuilder extends AbstractDiffCommandBuilder<DiffCom
|
||||
*/
|
||||
public String getContent() throws IOException {
|
||||
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
|
||||
getDiffResult();
|
||||
getDiffResult().accept(baos);
|
||||
return baos.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user