android: Use short build hash

master
Charles Lombardo 2023-05-01 16:58:33 +07:00 committed by bunnei
parent 86e395595a
commit f461465a92
1 changed files with 1 additions and 1 deletions

@ -191,7 +191,7 @@ fun getVersion(): String {
fun getGitHash(): String {
try {
val processBuilder = ProcessBuilder("git", "rev-parse", "HEAD")
val processBuilder = ProcessBuilder("git", "rev-parse", "--short", "HEAD")
processBuilder.directory(project.rootDir)
val process = processBuilder.start()
val inputStream = process.inputStream