Add first class support for golang hooks

This commit is contained in:
Anthony Sottile
2017-01-24 13:30:18 -08:00
parent 209339582c
commit 068c18d38a
11 changed files with 151 additions and 7 deletions

View File

@@ -32,6 +32,11 @@ def get_git_dir(git_root):
))
def get_remote_url(git_root):
ret = cmd_output('git', 'config', 'remote.origin.url', cwd=git_root)[1]
return ret.strip()
def is_in_merge_conflict():
git_dir = get_git_dir('.')
return (