mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Fix "repo not found" error (#3416)
Fix for https://github.com/larshp/abapGit/issues/2938 Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
63ab2d276c
commit
6d0861a7bd
|
@ -242,12 +242,18 @@ CLASS zcl_abapgit_repo_srv IMPLEMENTATION.
|
|||
refresh( ).
|
||||
ENDIF.
|
||||
|
||||
DO 2 TIMES.
|
||||
" Repo might have been created in another session. Try again after refresh
|
||||
IF sy-index = 2.
|
||||
refresh( ).
|
||||
ENDIF.
|
||||
LOOP AT mt_list ASSIGNING <lo_list>.
|
||||
IF <lo_list>->get_key( ) = iv_key.
|
||||
ro_repo = <lo_list>.
|
||||
RETURN.
|
||||
ENDIF.
|
||||
ENDLOOP.
|
||||
ENDDO.
|
||||
|
||||
zcx_abapgit_exception=>raise( 'repo not found, get' ).
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user