mirror of
https://github.com/fastogt/pyfastogt
synced 2025-03-09 23:38:55 +00:00
Fast clone
This commit is contained in:
parent
c321c963e1
commit
3e62085b06
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue