mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
cleanup: remove git utils file as the functions moved to build file
This commit is contained in:
parent
3a36bdfa38
commit
d9e050a502
1 changed files with 0 additions and 26 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue