mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-21 16:30:18 -06:00
Migrate sha -> rev
This commit is contained in:
@@ -97,7 +97,7 @@ def get_changed_files(new, old):
|
||||
)[1])
|
||||
|
||||
|
||||
def head_sha(remote):
|
||||
def head_rev(remote):
|
||||
_, out, _ = cmd_output('git', 'ls-remote', '--exit-code', remote, 'HEAD')
|
||||
return out.split()[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user