mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-09 16:14:59 +08:00
Omit extra git-checkout while cloning repo
Signed-off-by: Lukas Holecek <hluk@email.cz>
This commit is contained in:
@@ -158,6 +158,7 @@ class SCM(object):
|
||||
|
||||
module_clone_cmd = ['git', 'clone', '-q']
|
||||
if self.commit:
|
||||
module_clone_cmd.append('--no-checkout')
|
||||
module_checkout_cmd = ['git', 'checkout', '-q', self.commit]
|
||||
else:
|
||||
module_clone_cmd.extend(['--depth', '1'])
|
||||
|
||||
Reference in New Issue
Block a user