lateinit property git has not been initialized when GitPlus is closed
*Created by: davidsowerby* Code in a try-resources block exception: > kotlin.UninitializedPropertyAccessException: lateinit property git has not been initialized at uk.q3c.build.gitplus.local.DefaultGitLocal.getGit(DefaultGitLocal.kt:37) at uk.q3c.build.gitplus.local.DefaultGitLocal.close(DefaultGitLocal.kt:74) at uk.q3c.build.gitplus.gitplus.DefaultGitPlus.close(DefaultGitPlus.kt:34) code: ``` try (GitPlus gitPlus = GitPlusFactory.getInstance()) { final GitLocal gitLocal = gitPlus.getLocal(); final GitLocalConfiguration localConfig = gitLocal.getLocalConfiguration(); localConfig.projectName(getProject().getName()); localConfig.projectDirParent(getProject().getProjectDir().getParentFile()); logDebug("GitLocal config set with project directory = "+localConfig.projectDir()); gitPlus.getRemote().getConfiguration().active(false); log("remote is active: "+gitPlus.getRemote().getActive()); gitPlus.execute(); final GitBranch currentBranch = gitLocal.currentBranch(); commitId = gitLocal.latestCommitSHA(currentBranch).getSha(); } catch (Exception e) { // etc etc ```
issue