cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to Git Clone - Windows

yannmiquel
Participant
0 Likes
1,452

Hi,

I'm experiencing some issues with the SAP Git repository. I'm using Gitforwindows (last version) and a standard account (not trial). My goal is to clone the repo on my computer (windows 10). I'm administrator of this Neo account.

While executing

git clone http://git.eu2.hana.ondemand.com/____

and I get an error "Authentication failed for 'https://git.eu2.hana.ondemand.com/___/___/' "

The same procedure IS successful with the neo Trial account.

Any suggestions is welcome!

Yann

Accepted Solutions (0)

Answers (2)

Answers (2)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi yannmiquel,

If you are trying to clone an html5 repo, copy the URL from the versioning session of the application and perform a clone from there. Git client should ask you for your cloud account credentials. If it is not asking, then there should be somewhere in your git client a cached credential for that URL. If it is asking for your credentials in a pop-up window, then your user might need some additional authorization in that particular sub-account.

The platform role "Developer" has the required authorizations - namely: readGit and accessGit. On the other hand and "Administrator" role has an additional manageGit - which allows you to create additional git repositories under the Git Service in Neo.

I assume that if it is an HTML5 application deployed, then you need to checkout the wanted version according to the app version. You have to do this for example, once you've cloned:

git checkout tags/1.0.0

Best regards,
Ivan

yannmiquel
Participant
0 Likes

ivan.mirisola Thank you again for your time. The cmdkey was very helpful! I've found that the IAS has been implemented of the subaccount (as Platform id. prov) in the meantime and that's the reason why I didn't understand the changing behavior. But that's another question.

yannmiquel
Participant
0 Likes

Hi ivan.mirisola ,

Thank you for your answer. I'm still stuck but it's nice to know about the app version.

  • The (windows) client is indeed asking for my credentials (via OpenSSH) before prompting the Authentication failed. I tried all kind of username (S-User, email, P-User, JDoe)
  • My credentials should be ok since I can use the repo from WebIDE.
  • The Application Identity Provider is the default SAP ID Service

Any additional suggestion ?

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi yannmiquel,

Do you have any output from the command line below:

cmdkey /list git:https://git.eu2.hana.ondemand.com

If so, your git client is using the Windows Credential Manager to cache credentials for that resource. Probably you have changed your password on SAP ID Service and Windows still has the old one cached.

Probably removing the stored credential should solve your issue:

cmdkey /delete git:https://git.eu2.hana.ondemand.com

If your git client isn't using the Windows Credential Manager (and I suspect it isn't due to the OpenSSH popup) I believe you have to figure out how your client works in that sense.

Some git clients will manage it internally and you can remove it by issuing the following command.

git config --global --unset credential.helper
git config --system --unset credential.helper

To use the Windows Credential Manager you could do this:

git config --global credential.helper manager

Some will store credentials on the user's home under a file named ".git-credentials" and removing the file should fix the issue.

I'm using git version 2.24.0.windows.2 that I've downloaded from https://git-scm.com/download/win

Best regards,
Ivan