From f461465a921fa406766258996c21d7d47db403d0 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Mon, 1 May 2023 16:58:33 -0400 Subject: android: Use short build hash --- src/android/app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index e765720b1..379adb08c 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -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 -- cgit v1.2.3