|
@@ -12,7 +12,7 @@ val Project.gitVersionCode: Int
|
|
|
try {
|
|
try {
|
|
|
val stdout = ByteArrayOutputStream()
|
|
val stdout = ByteArrayOutputStream()
|
|
|
exec {
|
|
exec {
|
|
|
- commandLine("git", "rev-list", "--first-parent", "--count", "master")
|
|
|
|
|
|
|
+ commandLine("git", "rev-list", "--first-parent", "--count", "HEAD")
|
|
|
standardOutput = stdout
|
|
standardOutput = stdout
|
|
|
}
|
|
}
|
|
|
stdout.toString("utf-8").trim('\n').toInt()
|
|
stdout.toString("utf-8").trim('\n').toInt()
|