diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java b/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java index 1ca6e1a509e3c8fb0991ac0cbc35fb80a5941e89..c202a17142f6d2fca2fdeb5792da3755aff37139 100644 --- a/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java +++ b/src/de/uni_passau/fim/seibt/gitwrapper/repo/GitWrapper.java @@ -228,7 +228,7 @@ public class GitWrapper extends ToolWrapper { * @return the result of the execution */ public Optional<ExecRes> exec(File workingDirectory, String firstParameter, String... parameters) { - List<String> pars = new ArrayList<>(defaultOptions.size() + ((parameters != null) ? parameters.length : 0)); + List<String> pars = new ArrayList<>(defaultOptions.size() + ((parameters != null) ? parameters.length + 1 : 1)); pars.addAll(defaultOptions); pars.add(firstParameter);