Merge pull request #1510 from larshp/issue_1482

refresh repo cache after deletion #1482
This commit is contained in:
Lars Hvam 2018-06-18 15:21:23 +02:00 committed by GitHub
commit c1d77d2073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ ENDCLASS.
CLASS zcl_abapgit_services_git IMPLEMENTATION.
CLASS ZCL_ABAPGIT_SERVICES_GIT IMPLEMENTATION.
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' ).
ENDIF.
* todo, separate UI and logic
lv_answer = zcl_abapgit_ui_factory=>get_popups( )->popup_to_confirm(
titlebar = 'Warning'
text_question = 'Reset local objects?'
@ -265,6 +266,8 @@ CLASS zcl_abapgit_services_git IMPLEMENTATION.
IF lines( lt_selected ) > 0.
zcl_abapgit_objects=>delete( lt_selected ).
* update repo cache
lo_repo->refresh( ).
ENDIF.
ENDIF.