Merge remote-tracking branch 'upstream/develop' into xap
This commit is contained in:
commit
dcf4bf6d29
8302 changed files with 152923 additions and 60301 deletions
|
@ -298,6 +298,14 @@ def git_get_branch():
|
|||
return git_branch.stdout.strip()
|
||||
|
||||
|
||||
def git_get_tag():
|
||||
"""Returns the current tag for a repo, or None.
|
||||
"""
|
||||
git_tag = cli.run(['git', 'describe', '--abbrev=0', '--tags'])
|
||||
if git_tag.returncode == 0:
|
||||
return git_tag.stdout.strip()
|
||||
|
||||
|
||||
def git_is_dirty():
|
||||
"""Returns 1 if repo is dirty, or 0 if clean
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue