Omit extra git-checkout while cloning repo

Signed-off-by: Lukas Holecek <hluk@email.cz>
This commit is contained in:
Lukas Holecek
2019-01-08 11:51:39 +01:00
parent 9974d48709
commit 3ebc67979e

View File

@@ -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'])