refactoring, #266

This commit is contained in:
larshp 2016-06-24 07:31:16 +00:00
parent c6f4615aa4
commit 2e45f57145

View File

@ -3,7 +3,7 @@ REPORT zabapgit.
* See http://www.abapgit.org * See http://www.abapgit.org
CONSTANTS: gc_xml_version TYPE string VALUE 'v1.0.0', "#EC NOTEXT CONSTANTS: gc_xml_version TYPE string VALUE 'v1.0.0', "#EC NOTEXT
gc_abap_version TYPE string VALUE 'v1.12.1'. "#EC NOTEXT gc_abap_version TYPE string VALUE 'v1.12.2'. "#EC NOTEXT
******************************************************************************** ********************************************************************************
* The MIT License (MIT) * The MIT License (MIT)
@ -18028,7 +18028,9 @@ CLASS lcl_git_transport DEFINITION FINAL.
* local to remote * local to remote
CLASS-METHODS receive_pack CLASS-METHODS receive_pack
IMPORTING io_repo TYPE REF TO lcl_repo_online IMPORTING io_repo TYPE REF TO lcl_repo_online
iv_commit TYPE ty_sha1 iv_old TYPE ty_sha1
iv_new TYPE ty_sha1
iv_branch_name TYPE string
iv_pack TYPE xstring iv_pack TYPE xstring
RAISING lcx_exception. RAISING lcx_exception.
@ -18344,8 +18346,8 @@ CLASS lcl_git_transport IMPLEMENTATION.
lv_tmp TYPE xstring, lv_tmp TYPE xstring,
lv_xstring TYPE xstring, lv_xstring TYPE xstring,
lv_string TYPE string, lv_string TYPE string,
lv_buffer TYPE string, lv_cap_list TYPE string,
lv_branch TYPE ty_sha1. lv_buffer TYPE string.
find_branch( find_branch(
@ -18353,22 +18355,23 @@ CLASS lcl_git_transport IMPLEMENTATION.
io_repo = io_repo io_repo = io_repo
iv_service = c_service-receive iv_service = c_service-receive
IMPORTING IMPORTING
ei_client = li_client ei_client = li_client ).
ev_branch = lv_branch ).
set_headers( set_headers(
io_repo = io_repo io_repo = io_repo
iv_service = c_service-receive iv_service = c_service-receive
ii_client = li_client ). ii_client = li_client ).
lv_line = lv_branch && lv_cap_list = 'report-status agent=' && gv_agent.
lv_line = iv_old &&
` ` && ` ` &&
iv_commit && iv_new &&
` ` && ` ` &&
io_repo->get_branch_name( ) && iv_branch_name &&
get_null( ) && get_null( ) &&
` ` && ` ` &&
'report-status agent=' && gv_agent && lv_cap_list &&
gc_newline. "#EC NOTEXT gc_newline. "#EC NOTEXT
lv_cmd_pkt = pkt_string( lv_line ). lv_cmd_pkt = pkt_string( lv_line ).
@ -19078,9 +19081,15 @@ CLASS lcl_git_porcelain IMPLEMENTATION.
lv_pack = lcl_git_pack=>encode( lt_objects ). lv_pack = lcl_git_pack=>encode( lt_objects ).
rv_branch = lcl_hash=>sha1( iv_type = gc_type-commit iv_data = lv_commit ). rv_branch = lcl_hash=>sha1(
lcl_git_transport=>receive_pack( io_repo = io_repo iv_type = gc_type-commit
iv_commit = rv_branch iv_data = lv_commit ).
lcl_git_transport=>receive_pack(
io_repo = io_repo
iv_old = io_repo->get_sha1_local( )
iv_new = rv_branch
iv_branch_name = io_repo->get_branch_name( )
iv_pack = lv_pack ). iv_pack = lv_pack ).
ENDMETHOD. "receive_pack ENDMETHOD. "receive_pack