From 8e031e0498f852b2b82e5a7c9499341f3d5b4a53 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Tue, 30 Jun 2020 17:28:01 +0200 Subject: [PATCH] Update zcl_abapgit_repo.clas.abap (#3570) --- src/zcl_abapgit_repo.clas.abap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zcl_abapgit_repo.clas.abap b/src/zcl_abapgit_repo.clas.abap index 01906a7bc..b022d8c9b 100644 --- a/src/zcl_abapgit_repo.clas.abap +++ b/src/zcl_abapgit_repo.clas.abap @@ -356,7 +356,8 @@ CLASS ZCL_ABAPGIT_REPO IMPLEMENTATION. ro_dot = zcl_abapgit_dot_abapgit=>deserialize( -data ). set_dot_abapgit( ro_dot ). COMMIT WORK AND WAIT. " to release lock - ELSE. + ELSEIF lines( mt_remote ) > 3. + " Less files means it's a new repo (with just readme and license, for example) which is ok zcx_abapgit_exception=>raise( |Cannot find .abapgit.xml - Is this an abapGit repo?| ). ENDIF.