Create new instance of GitUtils in case there is no provided from outside

This commit is contained in:
Alejandra Ferreiro Vidal
2018-06-28 15:37:12 +02:00
committed by Marcus Holl
parent 9adad5ba37
commit 8eb8f23069
+1 -1
View File
@@ -12,7 +12,7 @@ public class ChangeManagement implements Serializable {
public ChangeManagement(def script, GitUtils gitUtils = null) {
this.script = script
this.gitUtils = gitUtils
this.gitUtils = gitUtils ?: new GitUtils()
}
String getChangeDocumentId(