From d9e050a502564b2634a64786d660c10d0072f0ab Mon Sep 17 00:00:00 2001 From: Rohit Verma Date: Sun, 25 May 2025 22:16:53 +0530 Subject: [PATCH] cleanup: remove git utils file as the functions moved to build file --- gitutils.gradle | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 gitutils.gradle diff --git a/gitutils.gradle b/gitutils.gradle deleted file mode 100644 index ffcc8e520..000000000 --- a/gitutils.gradle +++ /dev/null @@ -1,26 +0,0 @@ -ext.getBuildVersion = { -> - // Short-term fix for #1157. Should ideally look into why method is failing. - try { - def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git' , 'rev-parse' , '--short' , 'HEAD' - standardOutput = stdout - } - return stdout.toString().trim() - } catch (ignored) { - return null - } -} - -ext.getBranchName = { -> - try { - def stdOut = new ByteArrayOutputStream() - exec { - commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD' - standardOutput = stdOut - } - return stdOut.toString().trim() - } catch (ignored) { - return null - } -}