mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Fix running multiple instances of abapGit (#6679)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
d1e96e9952
commit
bb2423445e
|
@ -41,7 +41,7 @@ CLASS zcl_abapgit_persistence_repo DEFINITION
|
|||
zcx_abapgit_exception .
|
||||
METHODS get_repo_from_content
|
||||
IMPORTING
|
||||
is_content TYPE zif_abapgit_persistence=>ty_content
|
||||
is_content TYPE zif_abapgit_persistence=>ty_content
|
||||
RETURNING
|
||||
VALUE(rs_result) TYPE zif_abapgit_persistence=>ty_repo
|
||||
RAISING
|
||||
|
@ -50,7 +50,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_PERSISTENCE_REPO IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_persistence_repo IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD constructor.
|
||||
|
@ -158,10 +158,14 @@ CLASS ZCL_ABAPGIT_PERSISTENCE_REPO IMPLEMENTATION.
|
|||
MOVE-CORRESPONDING from_xml( lv_old_blob ) TO ls_repo_meta.
|
||||
lv_new_blob = to_xml( ls_repo_meta ).
|
||||
|
||||
mo_db->update(
|
||||
iv_type = zcl_abapgit_persistence_db=>c_type_repo
|
||||
iv_value = iv_repo_key
|
||||
iv_data = lv_new_blob ).
|
||||
IF lv_new_blob <> lv_old_blob.
|
||||
mo_db->update(
|
||||
iv_type = zcl_abapgit_persistence_db=>c_type_repo
|
||||
iv_value = iv_repo_key
|
||||
iv_data = lv_new_blob ).
|
||||
|
||||
COMMIT WORK.
|
||||
ENDIF.
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user