Skip to content

Commit 039b446

Browse files
committed
Fix building the openMINDS development branch
1 parent 36658d1 commit 039b446

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
print("***************************************")
2222

2323
directory_structure = DirectoryStructure()
24-
clone_central(True)
24+
if args["config"] == "versions-dev.json":
25+
clone_central(True, branch="development")
26+
else:
27+
clone_central(True)
2528

2629
# Step 1 - find the versions to be (re-)built
2730
relevant_versions, namespaces = evaluate_versions_to_be_built(args["config"], trigger)

openMINDS_pipeline/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
from openMINDS_pipeline.resolver import TEMPLATE_PROPERTY_TYPE
1616

1717

18-
def clone_central(refetch:bool) -> None:
18+
def clone_central(refetch:bool, branch:Optional[str]=None) -> None:
1919
if refetch and os.path.exists("target"):
2020
shutil.rmtree("target")
2121
if not os.path.exists("target"):
22-
Repo.clone_from("https://github.com/openMetadataInitiative/openMINDS.git", "target")
22+
if branch:
23+
Repo.clone_from("https://github.com/openMetadataInitiative/openMINDS.git", "target", branch=branch)
24+
else:
25+
Repo.clone_from("https://github.com/openMetadataInitiative/openMINDS.git", "target")
2326
shutil.rmtree("target/.git")
2427

2528

0 commit comments

Comments
 (0)