another quick fix for the staus codes, #2791
This commit is contained in:
Lars Hvam 2019-07-17 01:06:12 -07:00 committed by GitHub
parent 1a9d1b3d08
commit 998815f6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ CLASS zcl_abapgit_git_transport DEFINITION
IMPORTING iv_url TYPE string IMPORTING iv_url TYPE string
RETURNING VALUE(ro_branch_list) TYPE REF TO zcl_abapgit_git_branch_list RETURNING VALUE(ro_branch_list) TYPE REF TO zcl_abapgit_git_branch_list
RAISING zcx_abapgit_exception. RAISING zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION. PRIVATE SECTION.
CONSTANTS: BEGIN OF c_service, CONSTANTS: BEGIN OF c_service,
receive TYPE string VALUE 'receive', "#EC NOTEXT receive TYPE string VALUE 'receive', "#EC NOTEXT
@ -65,7 +66,7 @@ ENDCLASS.
CLASS zcl_abapgit_git_transport IMPLEMENTATION. CLASS ZCL_ABAPGIT_GIT_TRANSPORT IMPLEMENTATION.
METHOD branches. METHOD branches.
@ -216,6 +217,8 @@ CLASS zcl_abapgit_git_transport IMPLEMENTATION.
zcx_abapgit_exception=>raise( 'unpack not ok' ). zcx_abapgit_exception=>raise( 'unpack not ok' ).
ELSEIF lv_string CP '*pre-receive hook declined*'. ELSEIF lv_string CP '*pre-receive hook declined*'.
zcx_abapgit_exception=>raise( 'pre-receive hook declined' ). zcx_abapgit_exception=>raise( 'pre-receive hook declined' ).
ELSEIF lv_string CP '*protected branch hook declined*'.
zcx_abapgit_exception=>raise( 'protected branch hook declined' ).
ELSEIF lv_string CP '*push declined due to email privacy*'. ELSEIF lv_string CP '*push declined due to email privacy*'.
zcx_abapgit_exception=>raise( 'push declined due to email privacy' ). zcx_abapgit_exception=>raise( 'push declined due to email privacy' ).
ELSEIF lv_string CP '*funny refname*'. ELSEIF lv_string CP '*funny refname*'.