mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
New online: Condense repo url to avoid http errors (#4285)
This commit is contained in:
parent
3acdcf3534
commit
2fcd477e74
|
@ -425,12 +425,15 @@ CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION.
|
||||||
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
|
DATA: ls_repo TYPE zif_abapgit_persistence=>ty_repo,
|
||||||
lv_branch_name LIKE iv_branch_name,
|
lv_branch_name LIKE iv_branch_name,
|
||||||
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
|
lv_key TYPE zif_abapgit_persistence=>ty_repo-key,
|
||||||
ls_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit.
|
ls_dot_abapgit TYPE zif_abapgit_dot_abapgit=>ty_dot_abapgit,
|
||||||
|
lv_url TYPE string.
|
||||||
|
|
||||||
|
|
||||||
ASSERT NOT iv_url IS INITIAL
|
ASSERT NOT iv_url IS INITIAL
|
||||||
AND NOT iv_package IS INITIAL.
|
AND NOT iv_package IS INITIAL.
|
||||||
|
|
||||||
|
lv_url = condense( iv_url ).
|
||||||
|
|
||||||
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
|
IF zcl_abapgit_auth=>is_allowed( zif_abapgit_auth=>gc_authorization-create_repo ) = abap_false.
|
||||||
zcx_abapgit_exception=>raise( 'Not authorized' ).
|
zcx_abapgit_exception=>raise( 'Not authorized' ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
@ -438,17 +441,17 @@ CLASS ZCL_ABAPGIT_REPO_SRV IMPLEMENTATION.
|
||||||
validate_package( iv_package = iv_package
|
validate_package( iv_package = iv_package
|
||||||
iv_ign_subpkg = iv_ign_subpkg ).
|
iv_ign_subpkg = iv_ign_subpkg ).
|
||||||
|
|
||||||
zcl_abapgit_url=>validate( iv_url ).
|
zcl_abapgit_url=>validate( lv_url ).
|
||||||
|
|
||||||
lv_branch_name = determine_branch_name(
|
lv_branch_name = determine_branch_name(
|
||||||
iv_name = iv_branch_name
|
iv_name = iv_branch_name
|
||||||
iv_url = iv_url ).
|
iv_url = lv_url ).
|
||||||
|
|
||||||
ls_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( )->get_data( ).
|
ls_dot_abapgit = zcl_abapgit_dot_abapgit=>build_default( )->get_data( ).
|
||||||
ls_dot_abapgit-folder_logic = iv_folder_logic.
|
ls_dot_abapgit-folder_logic = iv_folder_logic.
|
||||||
|
|
||||||
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
|
lv_key = zcl_abapgit_persist_factory=>get_repo( )->add(
|
||||||
iv_url = iv_url
|
iv_url = lv_url
|
||||||
iv_branch_name = lv_branch_name " local !
|
iv_branch_name = lv_branch_name " local !
|
||||||
iv_display_name = iv_display_name
|
iv_display_name = iv_display_name
|
||||||
iv_package = iv_package
|
iv_package = iv_package
|
||||||
|
|
Loading…
Reference in New Issue
Block a user