Change git clone for gitlab working with branch (#615)

This commit is contained in:
Mickaël Martin 2019-01-17 16:12:21 +01:00 committed by Alexandre Aubin
parent 9632164c43
commit 808d844f84

View file

@ -1907,7 +1907,7 @@ def _fetch_app_from_git(app):
# we will be able to use it. Without this option all the history
# of the submodules repo is downloaded.
subprocess.check_call([
'git', 'clone', '--depth=1', '--recursive', url,
'git', 'clone', '-b', branch, '--single-branch', '--recursive', '--depth=1', url,
extracted_app_folder])
subprocess.check_call([
'git', 'reset', '--hard', branch