mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
bugfix, the selected commit is not the current commit (#4091)
* bugfix, the selected commit is not the current com * update
This commit is contained in:
parent
888bbcb27e
commit
1c63b6b2d7
|
@ -104,7 +104,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
||||
CLASS ZCL_ABAPGIT_REPO_ONLINE IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD fetch_remote.
|
||||
|
@ -136,11 +136,6 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_selected_branch.
|
||||
rv_name = ms_data-branch_name.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_commit_display_url.
|
||||
|
||||
rv_url = me->get_default_commit_display_url( iv_hash ).
|
||||
|
@ -161,6 +156,12 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_current_remote.
|
||||
fetch_remote( ).
|
||||
rv_sha1 = mv_current_commit.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_default_commit_display_url.
|
||||
|
||||
DATA ls_result TYPE match_result.
|
||||
|
@ -208,20 +209,13 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_selected_branch.
|
||||
rv_name = ms_data-branch_name.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_selected_commit.
|
||||
rv_sha1 = mv_current_commit.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD get_current_remote.
|
||||
fetch_remote( ).
|
||||
rv_sha1 = mv_current_commit.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD select_commit.
|
||||
reset_remote( ).
|
||||
mv_current_commit = iv_sha1.
|
||||
* todo, rv_sha1 = mv_current_commit.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
|
@ -341,6 +335,12 @@ CLASS zcl_abapgit_repo_online IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD select_commit.
|
||||
reset_remote( ).
|
||||
mv_current_commit = iv_sha1.
|
||||
ENDMETHOD.
|
||||
|
||||
|
||||
METHOD set_objects.
|
||||
mt_objects = it_objects.
|
||||
ENDMETHOD.
|
||||
|
|
Loading…
Reference in New Issue
Block a user