mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Issue 3060: Check repo URLs before creating a new online repo (#3063)
* Create pull.yml * Update zcl_abapgit_git_transport.clas.abap * Update zcl_abapgit_git_transport.clas.abap * Update pull.yml * Delete pull.yml * Check repo URLs before creating a new online repo Fixes #3060 * Check repo URLs before creating a new online repo Use method zcl_abapgit_url%3D>name and replace the assert with an exception
This commit is contained in:
parent
8df12d34e0
commit
89dfeb69f8
|
@ -47,7 +47,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_URL IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_url IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD host.
|
||||
|
@ -68,10 +68,11 @@ CLASS ZCL_ABAPGIT_URL IMPLEMENTATION.
|
|||
|
||||
IF rv_name IS INITIAL.
|
||||
FIND REGEX '([\w-]+)/$' IN lv_path SUBMATCHES rv_name.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( 'Malformed URL' ).
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
|
||||
ASSERT NOT rv_name IS INITIAL.
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
|
@ -98,7 +99,7 @@ CLASS ZCL_ABAPGIT_URL IMPLEMENTATION.
|
|||
|
||||
METHOD validate.
|
||||
|
||||
regex( iv_url ).
|
||||
name( iv_url ).
|
||||
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
|
|
Loading…
Reference in New Issue
Block a user