diff --git a/src/test/groovy/net/researchgate/release/GitReleasePluginTests.groovy b/src/test/groovy/net/researchgate/release/GitReleasePluginTests.groovy index 275a60c0..890837f5 100644 --- a/src/test/groovy/net/researchgate/release/GitReleasePluginTests.groovy +++ b/src/test/groovy/net/researchgate/release/GitReleasePluginTests.groovy @@ -126,7 +126,7 @@ class GitReleasePluginTests extends Specification { } } (project.tasks.commitNewVersion as CommitNewVersion).commitNewVersion() - String newestCommit = executor.exec(['git', 'show', 'myBranch', '-s'], failOnStderr: false, directory: remoteRepo, env: [:]) + String newestCommit = executor.exec(['git', 'show', 'myBranch', '-s', '--pretty=medium'], failOnStderr: false, directory: remoteRepo, env: [:]) executor.exec(['git', 'checkout', 'myBranch'], failOnStderr: false, directory: remoteRepo, env: [:]) executor.exec(['git', 'reset', '--hard', 'HEAD'], failOnStderr: false, directory: remoteRepo, env: [:]) then: