mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 03:36:32 +08:00
repo: skip missing packages in new repo validation
When we try to add a new online repository and we have a repository whose package does not exist in abapGit we get a short dump caused by assert in the method zif_abapgit_sap_package~read_parent of the class zcl_abapgit_sap_pacakge. This commit makes sure we skip such repositories because we believe it does not make sense to prevent us from cloning in these cases. Thank you Petr Benes <petr.benes@sap.com>!
This commit is contained in:
parent
273947240c
commit
6f6338bc67
|
@ -136,6 +136,10 @@ CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION.
|
|||
lo_repo = get( ls_repo-key ).
|
||||
|
||||
lo_package = zcl_abapgit_factory=>get_sap_package( ls_repo-package ).
|
||||
IF lo_package->exists( ) eq ABAP_FALSE.
|
||||
" Skip dangling repository
|
||||
CONTINUE.
|
||||
ENDIF.
|
||||
|
||||
CLEAR lt_packages.
|
||||
IF lo_repo->get_local_settings( )-ignore_subpackages = abap_false.
|
||||
|
|
Loading…
Reference in New Issue
Block a user