From 29c90183007e7825be41661b0e1efcb1b25bee01 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:20:02 -0500 Subject: [PATCH] TABU: Fix staging in background process (#6683) Co-authored-by: Lars Hvam --- src/stage/zcl_abapgit_stage_logic.clas.abap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stage/zcl_abapgit_stage_logic.clas.abap b/src/stage/zcl_abapgit_stage_logic.clas.abap index ee58b348b..eaa8a9899 100644 --- a/src/stage/zcl_abapgit_stage_logic.clas.abap +++ b/src/stage/zcl_abapgit_stage_logic.clas.abap @@ -87,13 +87,15 @@ CLASS zcl_abapgit_stage_logic IMPLEMENTATION. METHOD zif_abapgit_stage_logic~get. + " Getting REMOTE before LOCAL is critical to ensure that DATA config is loaded first + rs_files-remote = io_repo->get_files_remote( ii_obj_filter ). + IF ii_obj_filter IS INITIAL. rs_files-local = io_repo->get_files_local( ). ELSE. rs_files-local = io_repo->get_files_local_filtered( ii_obj_filter ). ENDIF. - rs_files-remote = io_repo->get_files_remote( ii_obj_filter ). rs_files-status = zcl_abapgit_repo_status=>calculate( io_repo = io_repo ii_obj_filter = ii_obj_filter ).