Skip to content

Commit 7581116

Browse files
committed
Use root dir for running findGit task so it doesn't fail if the project dir does not exist yet
1 parent 38fc71e commit 7581116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/minecrell/gitpatcher/task/FindGitTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FindGitTask extends DefaultTask {
3232

3333
@TaskAction
3434
void findGit() {
35-
def git = new Git(project.projectDir)
35+
def git = new Git(project.rootDir)
3636
try {
3737
def version = (git.version() as String).readLines().join(', ')
3838
logger.lifecycle("Using $version for patching submodule $submodule.")

0 commit comments

Comments
 (0)