mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Add first class support for golang hooks
This commit is contained in:
parent
209339582c
commit
068c18d38a
11 changed files with 151 additions and 7 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue