Skip to content

Commit 9845f68

Browse files
committed
Minor updates to find git task
1 parent 8ec1afb commit 9845f68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/groovy/net/minecrell/gitpatcher/Git.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Git {
9595
if (type == String) {
9696
setup(null, System.err)
9797
execute()
98-
return process.getInputStream().text
98+
return process.inputStream.text
9999
}
100100
}
101101

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FindGitTask extends DefaultTask {
3636
def version = (git.version() as String).readLines().join(', ')
3737
logger.lifecycle("Using $version for patching submodule $submodule.")
3838
} catch (Throwable e) {
39-
throw new AssertionError(
39+
throw new UnsupportedOperationException(
4040
'Failed to verify Git version. Make sure running the Gradle build in an environment where Git is in your PATH.', e);
4141
}
4242
}

0 commit comments

Comments
 (0)