From 2067910d0a8d22911e87c190111d4faedc5a695e Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Tue, 3 Apr 2018 16:20:57 +0200 Subject: [PATCH] issue 1232, better error message (#1290) --- src/git/zcl_abapgit_git_porcelain.clas.abap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/git/zcl_abapgit_git_porcelain.clas.abap b/src/git/zcl_abapgit_git_porcelain.clas.abap index 50dd5ee11..f66a86ce9 100644 --- a/src/git/zcl_abapgit_git_porcelain.clas.abap +++ b/src/git/zcl_abapgit_git_porcelain.clas.abap @@ -179,6 +179,8 @@ CLASS ZCL_ABAPGIT_GIT_PORCELAIN IMPLEMENTATION. IF iv_name CS ` `. zcx_abapgit_exception=>raise( 'Branch name cannot contain blank spaces' ). + ELSEIF iv_from = ''. + zcx_abapgit_exception=>raise( 'New branch, "from" SHA1 empty' ). ENDIF. * "client MUST send an empty packfile"