Avoid logon when comparing with remote (#5458)

"Data Config" is persisted on remote side only. Comparison feature reads the local part only and therefore does not support comparing of "data config". Therefore `get_files_remote` is not necessary.

Closes #5189, #5443

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2022-04-08 17:00:54 +02:00 committed by GitHub
parent 583d215114
commit 9d9b4327ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION. CLASS zcl_abapgit_repo IMPLEMENTATION.
METHOD bind_listener. METHOD bind_listener.
@ -429,11 +429,10 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION.
RETURN. RETURN.
ENDIF. ENDIF.
get_files_remote( ).
CREATE OBJECT ri_config TYPE zcl_abapgit_data_config. CREATE OBJECT ri_config TYPE zcl_abapgit_data_config.
mi_data_config = ri_config. mi_data_config = ri_config.
" Assume remote data has been loaded already
READ TABLE mt_remote ASSIGNING <ls_remote> READ TABLE mt_remote ASSIGNING <ls_remote>
WITH KEY file_path WITH KEY file_path
COMPONENTS path = zif_abapgit_data_config=>c_default_path. COMPONENTS path = zif_abapgit_data_config=>c_default_path.