Skip to content

Commit

Permalink
devonfw#944: improve handling of outputMessages (devonfw#1080)
Browse files Browse the repository at this point in the history
Co-authored-by: jan-vcapgemini <[email protected]>
Co-authored-by: Jörg Hohwiller <[email protected]>
  • Loading branch information
3 people authored and julia-cap committed Feb 28, 2025
1 parent a6deb75 commit 63c3551
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public ProcessResult run(ProcessMode processMode) {
}
}
this.arguments.clear();
return new ProcessResultImpl("git", command.toString(), exitCode, this.outputMessages);
List<OutputMessage> outputMessagesCopy = List.copyOf(this.outputMessages);
this.outputMessages.clear();
return new ProcessResultImpl("git", command.toString(), exitCode, outputMessagesCopy);
}

}

0 comments on commit 63c3551

Please sign in to comment.