Cancel branch creation if branch already exists (#2854)

This commit is contained in:
Fabian Lupa 2019-08-08 06:22:11 +02:00 committed by Lars Hvam
parent f5f9f6dc6a
commit cb80f78a6e

View File

@ -229,6 +229,8 @@ CLASS ZCL_ABAPGIT_GIT_TRANSPORT IMPLEMENTATION.
zcx_abapgit_exception=>raise( 'missing necessary objects' ).
ELSEIF lv_string CP '*refusing to delete the current branch*'.
zcx_abapgit_exception=>raise( 'branch delete not allowed' ).
ELSEIF lv_string CP '*cannot lock ref*reference already exists*'.
zcx_abapgit_exception=>raise( 'branch already exists' ).
ENDIF.
ENDMETHOD.