File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -602,13 +602,24 @@ def _update_ini_file(
602
602
DNE_ENGINE_VERSION_SECTION = '/Script/DNEEngineVersion.DNEEngineVersion'
603
603
PROJECT_BINARY_VERSION_KEY = 'ProjectBinaryRevision'
604
604
PROJECT_CONTENT_VERSION_KEY = 'ProjectContentRevision'
605
+ PROJECT_BRANCH_NAME_KEY = 'ProjectBranchName'
605
606
606
607
write_dne_revisions = getattr (env , 'write_project_revisions' , False )
607
608
608
609
if write_dne_revisions :
609
610
if DNE_ENGINE_VERSION_SECTION not in ini_config :
610
611
ini_config [DNE_ENGINE_VERSION_SECTION ] = {}
611
612
613
+ if branch := getattr (env , 'branch' ):
614
+ if write_dne_revisions :
615
+ logging .info (
616
+ 'Set [%s]%s to %s' ,
617
+ DNE_ENGINE_VERSION_SECTION ,
618
+ PROJECT_BRANCH_NAME_KEY ,
619
+ branch ,
620
+ )
621
+ ini_config [DNE_ENGINE_VERSION_SECTION ][PROJECT_BRANCH_NAME_KEY ] = branch
622
+
612
623
workspace_status = nimp .system .load_status (env )
613
624
if isinstance (workspace_status , dict ):
614
625
worker_platform = nimp .unreal .get_host_platform ()
You can’t perform that action at this time.
0 commit comments