mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
check for short reply
This commit is contained in:
parent
97cf737230
commit
9b5824e688
|
@ -178,7 +178,11 @@ CLASS zcl_abapgit_git_pack IMPLEMENTATION.
|
|||
lv_data = iv_data.
|
||||
|
||||
* header
|
||||
IF NOT xstrlen( lv_data ) > 4 OR lv_data(4) <> c_pack_start.
|
||||
IF xstrlen( lv_data ) < 4.
|
||||
zcx_abapgit_exception=>raise( |Unexpected pack header, short reply| ).
|
||||
ENDIF.
|
||||
|
||||
IF lv_data(4) <> c_pack_start.
|
||||
zcx_abapgit_exception=>raise( |Unexpected pack header, { lv_data(4) }| ).
|
||||
ENDIF.
|
||||
lv_data = lv_data+4.
|
||||
|
|
Loading…
Reference in New Issue
Block a user