mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 11:46:38 +08:00
delete method set_new_remote in online repo
delete method set_new_remote in online repo #1757
This commit is contained in:
parent
f77b798f4c
commit
02cccf6995
|
@ -97,7 +97,7 @@ ENDCLASS.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLASS zcl_abapgit_services_repo IMPLEMENTATION.
|
CLASS ZCL_ABAPGIT_SERVICES_REPO IMPLEMENTATION.
|
||||||
|
|
||||||
|
|
||||||
METHOD gui_deserialize.
|
METHOD gui_deserialize.
|
||||||
|
@ -422,8 +422,8 @@ CLASS zcl_abapgit_services_repo IMPLEMENTATION.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
|
||||||
lo_repo->set_new_remote( iv_url = ls_popup-url
|
lo_repo->set_url( ls_popup-url ).
|
||||||
iv_branch_name = ls_popup-branch_name ).
|
lo_repo->set_branch_name( ls_popup-branch_name ).
|
||||||
|
|
||||||
COMMIT WORK.
|
COMMIT WORK.
|
||||||
|
|
||||||
|
|
|
@ -34,12 +34,6 @@ CLASS zcl_abapgit_repo_online DEFINITION
|
||||||
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name
|
!iv_branch_name TYPE zif_abapgit_persistence=>ty_repo-branch_name
|
||||||
RAISING
|
RAISING
|
||||||
zcx_abapgit_exception .
|
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
|
METHODS get_sha1_remote
|
||||||
RETURNING
|
RETURNING
|
||||||
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
VALUE(rv_sha1) TYPE zif_abapgit_definitions=>ty_sha1
|
||||||
|
@ -340,20 +334,6 @@ CLASS ZCL_ABAPGIT_REPO_ONLINE IMPLEMENTATION.
|
||||||
ENDMETHOD.
|
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.
|
METHOD set_objects.
|
||||||
mt_objects = it_objects.
|
mt_objects = it_objects.
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user