mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
pre-commit run --all-files
This commit is contained in:
parent
d71a75fea2
commit
ec2e15f086
1 changed files with 4 additions and 2 deletions
|
|
@ -148,8 +148,10 @@ class Store(object):
|
||||||
git_config = 'protocol.version={}'.format(protocol_version)
|
git_config = 'protocol.version={}'.format(protocol_version)
|
||||||
git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1')
|
git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1')
|
||||||
git_cmd('checkout', ref)
|
git_cmd('checkout', ref)
|
||||||
git_cmd('-c', git_config, 'submodule', 'update', '--init',
|
git_cmd(
|
||||||
'--recursive', '--depth=1')
|
'-c', git_config, 'submodule', 'update', '--init',
|
||||||
|
'--recursive', '--depth=1',
|
||||||
|
)
|
||||||
|
|
||||||
def clone(self, repo, ref, deps=()):
|
def clone(self, repo, ref, deps=()):
|
||||||
"""Clone the given url and checkout the specific ref."""
|
"""Clone the given url and checkout the specific ref."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue