MCPcopy Create free account
hub / github.com/apache/solr / getLocalGitBranch

Function getLocalGitBranch

dev-tools/scripts/reproduceJenkinsFailures.py:244–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 return failures
243
244def getLocalGitBranch():
245 origGitBranch = runOutput('git rev-parse --abbrev-ref HEAD')
246 if origGitBranch == 'HEAD': # In detached HEAD state
247 origGitBranch = runOutput('git rev-parse HEAD') # Use the SHA when not on a branch
248 print('[repro] Initial local git branch/revision: %s' % origGitBranch)
249 return origGitBranch
250
251def main():
252 config = readConfig()

Callers 1

mainFunction · 0.85

Calls 1

runOutputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…