theia-ide / theia-apps

Theia applications examples - docker images, desktop apps, packagings
Apache License 2.0
1.04k stars 346 forks source link

Git Clone from gitlab and gogs does not work #474

Closed erdalkaraca closed 3 years ago

erdalkaraca commented 3 years ago

Bug Description:

Git cloning from a gitlab or gogs repository does not work, i.e. I can see an empty (bare) git repo created, but the contents are not fetched - I tried with both public and private repos. Cloning from a github repo works as expected.

Steps to Reproduce:

Call Git Clone command and enter a repo URL from either gitlab or gogs.

Additional Information

Using docker image theia-full:latest.

vince-fugnitto commented 3 years ago

@erdalkaraca I did the following and it worked for me:

  1. docker pull theiaide/theia-full:latest
  2. docker run --init -p 3000:3000 theiaide/theia-full:latest
  3. I then started the app, and performed a git clone using https from a public gitlab repository (ex: hello_world)
erdalkaraca commented 3 years ago

@vince-fugnitto That is strange, that repo also works for me.

Can you try the following repo:

https://gitlab.uni-oldenburg.de/fare4678/ml-neurophysio.git

It is a private repo, but at least I should be asked for the credentials, I guess.

vince-fugnitto commented 3 years ago

Can you try the following repo

It correctly asks me for credentials (I do not have ssh keys set up or anything):

Screen Shot 2021-04-14 at 4 55 36 PM
erdalkaraca commented 3 years ago

Thanks for the screenshot. Now, I see you are cloning in terminal. I was using F1>Git Clone command which does not ask for credentials. In terminal I can also clone the repo.

vince-fugnitto commented 3 years ago

Thanks for the screenshot. Now, I see you are cloning in terminal. I was using F1>Git Clone command which does not ask for credentials.

I see, thank you for the clarification (I use the terminal and it's a habit).

There are a couple of options for your own application:

I'll open a follow-up issue in the framework about possibly improving @theia/git to behave similarly to the builtin.

stale[bot] commented 3 years ago

This contribution has been automatically marked as stale due to inactivity, and it will be closed if no further activity occurs. Thank you for contributing to Theia!