Fix detection of abapGit installation (#3425)

Old logic was failing if transaction ZABAPGIT already existed - typically because it was created manually for the merged version. Testing for program ZABAPGIT would not be any better since that might have been used for the merged version as well. It's more reliable to check a class.

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Marc Bernard 2020-05-26 06:05:10 +02:00 committed by GitHub
parent 0cc10cd44f
commit f1c249b073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ CLASS zcl_abapgit_services_abapgit DEFINITION
c_dotabap_homepage TYPE string VALUE 'https://dotabap.org' ##NO_TEXT,
c_abapgit_package TYPE devclass VALUE '$ABAPGIT' ##NO_TEXT,
c_abapgit_url TYPE string VALUE 'https://github.com/larshp/abapGit.git' ##NO_TEXT,
c_abapgit_class TYPE tcode VALUE `ZCL_ABAPGIT_REPO` ##NO_TEXT,
c_abapgit_tcode TYPE tcode VALUE `ZABAPGIT` ##NO_TEXT.
CLASS-METHODS open_abapgit_homepage
@ -225,7 +226,7 @@ CLASS zcl_abapgit_services_abapgit IMPLEMENTATION.
METHOD is_installed.
SELECT SINGLE devclass FROM tadir INTO rv_devclass
WHERE object = 'TRAN' AND obj_name = c_abapgit_tcode.
WHERE object = 'CLAS' AND obj_name = c_abapgit_class.
ENDMETHOD.