Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone over https #15

Open
dasch124 opened this issue Jun 12, 2015 · 0 comments
Open

clone over https #15

dasch124 opened this issue Jun 12, 2015 · 0 comments

Comments

@dasch124
Copy link

Hi,
first thanks for publishing the released xar package - I tried to build eXgit by myself, but ran into the same issue like joeviz, so this helped me to get started.

I was wondering: Is it (or will it be) possible to clone a git repo via https or using public keys? We have several institutional git repositories that are managed with gitolite or the Redmine Git Hosting plugin - so the only option to clone with credentials is via https.

That's what I tried so far:

xquery version "3.0";

import module namespace git="http://exist-db.org/git";

let $remotePath := "https://[email protected]/redmine/myRepo.git",
    $localPath := "/db/myClone",
    $username := "myusername",
    $password := "mypassword"

return git:clone($remotePath, $localPath, $username, $password)

this leads to an org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin

Using the git bash, the same remote Path is reachable and works fine.

I guess this is a feature, not a bug - but maybe this would be not too complex to add?
Thanks,
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant