mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-10 05:22:59 +03:00
add option to pass options to git clone
Summary: We need this for dependencies that require submodules Reviewed By: saifhhasan, GirasoleY Differential Revision: D15282792 fbshipit-source-id: b0cc8d645e73668252409934fd6741fb211e30ae
This commit is contained in:
committed by
Facebook Github Bot
parent
629a9d8f6e
commit
552d2b8008
@@ -283,7 +283,9 @@ class FBCodeBuilder(object):
|
||||
return self.step('Check out {0}, workdir {1}'.format(project, path), [
|
||||
self.workdir(base_dir),
|
||||
self.run(
|
||||
ShellQuoted('git clone https://github.com/{p}').format(p=project)
|
||||
ShellQuoted('git clone {opts} https://github.com/{p}').format(
|
||||
p=project,
|
||||
opts=ShellQuoted(self.option('{}:git_clone_opts'.format(project), '')))
|
||||
) if not local_repo_dir else self.copy_local_repo(
|
||||
local_repo_dir, os.path.basename(project)
|
||||
),
|
||||
|
Reference in New Issue
Block a user