diff --git a/src/ui/zcl_abapgit_services_repo.clas.abap b/src/ui/zcl_abapgit_services_repo.clas.abap index ad94976a8..6e909a6cc 100644 --- a/src/ui/zcl_abapgit_services_repo.clas.abap +++ b/src/ui/zcl_abapgit_services_repo.clas.abap @@ -97,7 +97,7 @@ ENDCLASS. -CLASS zcl_abapgit_services_repo IMPLEMENTATION. +CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION. METHOD gui_deserialize. @@ -422,8 +422,8 @@ CLASS zcl_abapgit_services_repo IMPLEMENTATION. ENDIF. lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ). - lo_repo->set_new_remote( iv_url = ls_popup-url - iv_branch_name = ls_popup-branch_name ). + lo_repo->set_url( ls_popup-url ). + lo_repo->set_branch_name( ls_popup-branch_name ). COMMIT WORK. diff --git a/src/zcl_abapgit_repo_online.clas.abap b/src/zcl_abapgit_repo_online.clas.abap index 4606986f0..9f6bcbee4 100644 --- a/src/zcl_abapgit_repo_online.clas.abap +++ b/src/zcl_abapgit_repo_online.clas.abap @@ -34,12 +34,6 @@ CLASS zcl_abapgit_repo_online DEFINITION !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name RAISING zcx_abapgit_exception . - METHODS set_new_remote - IMPORTING - !iv_url TYPE zif_abapgit_persistence=>ty_repo-url - !iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name - RAISING - zcx_abapgit_exception . METHODS get_sha1_remote RETURNING VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1 @@ -340,20 +334,6 @@ CLASS ZCL_ABAPGIT_REPO_ONLINE IMPLEMENTATION. ENDMETHOD. - METHOD set_new_remote. - - IF ms_data-local_settings-write_protected = abap_true. - zcx_abapgit_exception=>raise( 'Cannot change remote. Local code is write-protected by repo config' ). - ENDIF. - - mv_initialized = abap_false. - set( iv_url = iv_url - iv_branch_name = iv_branch_name - iv_head_branch = '' ). - - ENDMETHOD. "set_new_remote - - METHOD set_objects. mt_objects = it_objects. ENDMETHOD.