9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-21 11:03:29 +01:00

Merge pull request #30 from mveril/cleaning-qp-plugins-download

Cleaning qp_plugins code for download git repo
This commit is contained in:
Anthony Scemama 2019-03-24 14:51:53 +01:00 committed by GitHub
commit 98f46b3cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,10 +186,10 @@ def main(arguments):
url.endswith(".zip"))
os.chdir(QP_PLUGINS)
if is_repo:
cmd=["git", "clone", url]
git_cmd=["git", "clone", url]
if arguments["--name"]:
cmd=cmd+[arguments["--name"]]
subprocess.check_call(cmd)
git_cmd.append(arguments["--name"])
subprocess.check_call(git_cmd)
else:
filename = url.split('/')[-1]