mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Ensure restoring in error cases
This commit is contained in:
parent
06ffad25e2
commit
a6f619ad4c
|
@ -549,8 +549,8 @@ CLASS lcl_repo IMPLEMENTATION.
|
||||||
METHOD deserialize.
|
METHOD deserialize.
|
||||||
|
|
||||||
DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
|
DATA: lt_updated_files TYPE zif_abapgit_definitions=>ty_file_signatures_tt,
|
||||||
lt_requirements TYPE STANDARD TABLE OF lcl_dot_abapgit=>ty_requirement.
|
lt_requirements TYPE STANDARD TABLE OF lcl_dot_abapgit=>ty_requirement,
|
||||||
|
lx_error TYPE REF TO zcx_abapgit_exception.
|
||||||
|
|
||||||
find_remote_dot_abapgit( ).
|
find_remote_dot_abapgit( ).
|
||||||
|
|
||||||
|
@ -564,8 +564,17 @@ CLASS lcl_repo IMPLEMENTATION.
|
||||||
iv_show_popup = abap_true ).
|
iv_show_popup = abap_true ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
TRY.
|
||||||
lt_updated_files = lcl_objects=>deserialize( me ).
|
lt_updated_files = lcl_objects=>deserialize( me ).
|
||||||
|
|
||||||
|
CATCH zcx_abapgit_exception INTO lx_error.
|
||||||
|
|
||||||
|
" ensure to reset default transport request task
|
||||||
|
zcl_abapgit_default_task=>get_instance( )->reset( ).
|
||||||
|
zcx_abapgit_exception=>raise( lx_error->text ).
|
||||||
|
|
||||||
|
ENDTRY.
|
||||||
|
|
||||||
APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files.
|
APPEND get_dot_abapgit( )->get_signature( ) TO lt_updated_files.
|
||||||
|
|
||||||
CLEAR: mt_local, mv_last_serialization.
|
CLEAR: mt_local, mv_last_serialization.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user