Skip to content

Commit fff4143

Browse files
committed
fix bugs intruduced by my previous commit
1 parent f50a098 commit fff4143

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

thirdparty/getFunction2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def getFunction2(install, prefix, par):
1717
cwd = os.getcwd()
1818
folder = cwd + "/function2"
1919
url = "https://github.com/Naios/function2.git"
20+
function2_tag = "4.1.0"
2021

2122
if os.path.exists(folder) == False:
22-
subprocess.run(("git clone --depth 1 " + url).split(), check=True)
23+
subprocess.run(f"git clone --depth 1 --branch {function2_tag} {url}".split(), check=True)
2324
os.chdir(folder)
24-
subprocess.run("git checkout 3a0746bf5f601dfed05330aefcb6854354fce07d".split(), check=True)
2525

2626
sudo = ""
2727
if(osStr == "Windows"):

thirdparty/getJson.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def getJson(install, prefix, par):
1616
osStr = (platform.system())
1717
cwd = os.getcwd()
1818
folder = cwd + "/json"
19-
url = "https://github.com/nlohmann/json.git "
19+
url = "https://github.com/nlohmann/json.git"
20+
json_branch_or_tag = "develop"
2021

2122
if os.path.exists(folder) == False:
22-
subprocess.run(("git clone --depth 1 " + url).split(), check=True)
23+
subprocess.run(f"git clone --depth 1 --branch {json_branch_or_tag} {url}".split(), check=True)
2324
os.chdir(folder)
24-
#subprocess.run("git checkout 3a0746bf5f601dfed05330aefcb6854354fce07d".split(), check=True)
2525

2626
sudo = ""
2727
if(osStr == "Windows"):

0 commit comments

Comments
 (0)