mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Fix full clone + non-mainline tag
This commit is contained in:
parent
b33f2c40d8
commit
eab24f3e48
2 changed files with 16 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ class Store(object):
|
|||
def _complete_clone(self, ref, git_cmd):
|
||||
"""Perform a complete clone of a repository and its submodules """
|
||||
|
||||
git_cmd('fetch', 'origin')
|
||||
git_cmd('fetch', 'origin', '--tags')
|
||||
git_cmd('checkout', ref)
|
||||
git_cmd('submodule', 'update', '--init', '--recursive')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue