refresh repo cache after deletion #1482

This commit is contained in:
larshp 2018-06-17 08:23:56 +00:00
parent fe6c978198
commit 9f75d6bd2b

View File

@ -77,7 +77,7 @@ ENDCLASS.
CLASS zcl_abapgit_services_git IMPLEMENTATION. CLASS ZCL_ABAPGIT_SERVICES_GIT IMPLEMENTATION.
METHOD commit. METHOD commit.
@ -233,6 +233,7 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
zcx_abapgit_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ). zcx_abapgit_exception=>raise( 'Cannot reset. Local code is write-protected by repo config' ).
ENDIF. ENDIF.
* todo, separate UI and logic
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm( lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
titlebar = 'Warning' titlebar = 'Warning'
text_question = 'Reset local objects?' text_question = 'Reset local objects?'
@ -265,6 +266,8 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
IF lines( lt_selected ) > 0. IF lines( lt_selected ) > 0.
zcl_abapgit_objects=>delete( lt_selected ). zcl_abapgit_objects=>delete( lt_selected ).
* update repo cache
lo_repo->refresh( ).
ENDIF. ENDIF.
ENDIF. ENDIF.