diff --git a/thirdparty/getFunction2.py b/thirdparty/getFunction2.py index 4d03b84..463b567 100644 --- a/thirdparty/getFunction2.py +++ b/thirdparty/getFunction2.py @@ -17,11 +17,11 @@ def getFunction2(install, prefix, par): cwd = os.getcwd() folder = cwd + "/function2" url = "https://github.com/Naios/function2.git" + function2_tag = "4.1.0" if os.path.exists(folder) == False: - subprocess.run(("git clone --depth 1 " + url).split(), check=True) + subprocess.run(f"git clone --depth 1 --branch {function2_tag} {url}".split(), check=True) os.chdir(folder) - subprocess.run("git checkout 3a0746bf5f601dfed05330aefcb6854354fce07d".split(), check=True) sudo = "" if(osStr == "Windows"): diff --git a/thirdparty/getJson.py b/thirdparty/getJson.py index 7e24cf7..36b6aed 100644 --- a/thirdparty/getJson.py +++ b/thirdparty/getJson.py @@ -16,12 +16,12 @@ def getJson(install, prefix, par): osStr = (platform.system()) cwd = os.getcwd() folder = cwd + "/json" - url = "https://github.com/nlohmann/json.git " + url = "https://github.com/nlohmann/json.git" + json_branch_or_tag = "develop" if os.path.exists(folder) == False: - subprocess.run(("git clone --depth 1 " + url).split(), check=True) + subprocess.run(f"git clone --depth 1 --branch {json_branch_or_tag} {url}".split(), check=True) os.chdir(folder) - #subprocess.run("git checkout 3a0746bf5f601dfed05330aefcb6854354fce07d".split(), check=True) sudo = "" if(osStr == "Windows"):