add local tag in shallow clone

This commit is contained in:
gnought 2026-02-14 01:42:13 +08:00
parent 19b60a6b48
commit 5c9f50b681
No known key found for this signature in database
GPG key ID: 04D7C0864CCDDF10

View file

@ -187,6 +187,7 @@ class Store:
git_config = 'protocol.version=2' git_config = 'protocol.version=2'
git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1') git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1')
git_cmd('checkout', 'FETCH_HEAD') git_cmd('checkout', 'FETCH_HEAD')
git_cmd('tag', '-a', '-m', '""', ref, 'FETCH_HEAD')
git_cmd( git_cmd(
'-c', git_config, 'submodule', 'update', '--init', '--recursive', '-c', git_config, 'submodule', 'update', '--init', '--recursive',
'--depth=1', '--depth=1',