File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 2121print ("***************************************" )
2222
2323directory_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
2730relevant_versions , namespaces = evaluate_versions_to_be_built (args ["config" ], trigger )
Original file line number Diff line number Diff line change 1515from 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
You can’t perform that action at this time.
0 commit comments