Compare commits

...

3 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
63441ebfbc Release version 0.41.0 2022-03-02 02:36:41 -05:00
Jose Diaz-Gonzalez
7ad324225e Merge pull request #191 from SkySoft-ATM/bug/lfs_mirror
git lfs clone does not respect --mirror
2022-03-02 02:34:17 -05:00
Louis Parisot
885e94a102 git lfs clone doe snot respect --mirror 2022-02-03 11:45:59 +01:00
2 changed files with 6 additions and 5 deletions

View File

@@ -1 +1 @@
__version__ = '0.40.2'
__version__ = '0.41.0'

View File

@@ -1106,10 +1106,11 @@ def fetch_repository(name,
masked_remote_url,
local_dir))
if bare_clone:
if lfs_clone:
git_command = ['git', 'lfs', 'clone', '--mirror', remote_url, local_dir]
else:
git_command = ['git', 'clone', '--mirror', remote_url, local_dir]
logging_subprocess(git_command, None)
if lfs_clone:
git_command = ['git', 'lfs', 'fetch', '--all', '--prune']
logging_subprocess(git_command, None, cwd=local_dir)
else:
if lfs_clone:
git_command = ['git', 'lfs', 'clone', remote_url, local_dir]