diff --git a/src/main/groovy/nebula/plugin/info/scm/GitScmProvider.groovy b/src/main/groovy/nebula/plugin/info/scm/GitScmProvider.groovy index d1aa61d..46f3176 100644 --- a/src/main/groovy/nebula/plugin/info/scm/GitScmProvider.groovy +++ b/src/main/groovy/nebula/plugin/info/scm/GitScmProvider.groovy @@ -51,6 +51,9 @@ class GitScmProvider extends AbstractScmProvider { @Override String calculateModuleSource(File projectDir) { String gitWorkDir = executeGitCommand("git", "rev-parse", "--show-toplevel") + if(!gitWorkDir) { + return projectDir.absolutePath + } return projectDir.absolutePath - new File(gitWorkDir).absolutePath }