1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00

Fast clone

This commit is contained in:
topilski 2017-06-12 08:21:57 -04:00
parent c321c963e1
commit 3e62085b06

View file

@ -128,7 +128,7 @@ def build_from_sources(url, compiler_flags: CompileInfo, source_dir_path, prefix
def git_clone(url, current_dir): def git_clone(url, current_dir):
common_git_clone_line = ['git', 'clone', url] common_git_clone_line = ['git', 'clone', '--depth=1', url]
cloned_dir = os.path.splitext(url.rsplit('/', 1)[-1])[0] cloned_dir = os.path.splitext(url.rsplit('/', 1)[-1])[0]
common_git_clone_line.append(cloned_dir) common_git_clone_line.append(cloned_dir)
subprocess.call(common_git_clone_line) subprocess.call(common_git_clone_line)