From e38309f82f9e6457fa866cc822f02e344ec9ebf3 Mon Sep 17 00:00:00 2001 From: larshp Date: Fri, 18 Apr 2025 07:34:59 +0000 Subject: [PATCH] bugfix: offline repo pull /data/ --- src/repo/zcl_abapgit_repo.clas.abap | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/repo/zcl_abapgit_repo.clas.abap b/src/repo/zcl_abapgit_repo.clas.abap index 3c952b3f9..cdc8ffdf4 100644 --- a/src/repo/zcl_abapgit_repo.clas.abap +++ b/src/repo/zcl_abapgit_repo.clas.abap @@ -133,7 +133,7 @@ ENDCLASS. -CLASS zcl_abapgit_repo IMPLEMENTATION. +CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION. METHOD zif_abapgit_repo~bind_listener. @@ -312,9 +312,7 @@ CLASS zcl_abapgit_repo IMPLEMENTATION. ENDIF. CREATE OBJECT ri_config TYPE zcl_abapgit_data_config. - mi_data_config = ri_config. - " Assume remote data has been loaded already READ TABLE mt_remote ASSIGNING WITH KEY file_path COMPONENTS path = zif_abapgit_data_config=>c_default_path. @@ -322,6 +320,12 @@ CLASS zcl_abapgit_repo IMPLEMENTATION. ri_config->from_json( mt_remote ). ENDIF. +* offline repos does not have the remote files before the zip is choosen +* so make sure the json is read after zip file is loaded + IF lines( mt_remote ) > 0. + mi_data_config = ri_config. + ENDIF. + ENDMETHOD.