mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
add local tag in shallow clone
This commit is contained in:
parent
19b60a6b48
commit
5c9f50b681
1 changed files with 1 additions and 0 deletions
|
|
@ -187,6 +187,7 @@ class Store:
|
|||
git_config = 'protocol.version=2'
|
||||
git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1')
|
||||
git_cmd('checkout', 'FETCH_HEAD')
|
||||
git_cmd('tag', '-a', '-m', '""', ref, 'FETCH_HEAD')
|
||||
git_cmd(
|
||||
'-c', git_config, 'submodule', 'update', '--init', '--recursive',
|
||||
'--depth=1',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue