diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/process/ToolWrapper.java b/src/de/uni_passau/fim/seibt/gitwrapper/process/ToolWrapper.java index 97fe9dc32e7b5d6a75c83d3def2e54bf88401c1b..f960c2bf73639258f720d14074c703e302fa4484 100644 --- a/src/de/uni_passau/fim/seibt/gitwrapper/process/ToolWrapper.java +++ b/src/de/uni_passau/fim/seibt/gitwrapper/process/ToolWrapper.java @@ -1,6 +1,7 @@ package de.uni_passau.fim.seibt.gitwrapper.process; import java.io.File; +import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -85,8 +86,10 @@ public abstract class ToolWrapper { * @return the command to be executed */ private List<String> addCommand(List<String> parameters) { - LinkedList<String> pars = new LinkedList<>(parameters); - pars.addFirst(cmd); + List<String> pars = new ArrayList<>(parameters.size() + 1); + + pars.add(cmd); + pars.addAll(parameters); return pars; }