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 Repository in Container volume throws error when trying to Clone the actuall repository #7424

Open
Dzivo opened this issue Oct 26, 2022 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers volume Dev Container mounting a Docker volume

Comments

@Dzivo
Copy link

Dzivo commented Oct 26, 2022

Version: 1.72.2 (user setup)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:18.074Z (1 wk ago)
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

Steps to Reproduce:

  1. Clone Repository in Container volume
  2. Enter URL https://companyname@dev.azure.com/companyname/Project/_git/Project
  3. Press enter
  4. Click on Starting Dev Contianer (show log)
  5. Wait for it to try and clone the repository
[2075 ms] Start: Run in container: git clone --depth 1 https://companyname@dev.azure.com/companyname/Project/_git/Project.
Cloning into '.'...
fatal: Cannot determine the organization name for this 'dev.azure.com' remote URL. Ensure the `credential.useHttpPath` configuration value is set, or set the organization name as the user in the remote URL '{org
}@dev.azure.com'.
fatal: could not read Password for 'https://companyname@dev.azure.com': terminal prompts disabled
Password for 'https://enumsoftware@dev.azure.com':

similar issue #2620

As I can see it is trying to pull out a prompt, but he cannot because it is in Docker for Gitlab for example if i am authorized on my computer authorization also works in docker container so i am confused.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Oct 26, 2022
@chrmarti
Copy link
Contributor

It seems you are already doing what it asks for with the organization name. For the authentication we forward to your local Git credential helper. Does git clone --depth 1 https://companyname@dev.azure.com/companyname/Project/_git/Project work locally? Could you append your local ~/.gitconfig (we copy that to the container where git clone is run)? Also append the full container log (F1 > Dev Containers: Show Container Log) in case that has additional information for this.

@chrmarti chrmarti self-assigned this Oct 28, 2022
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Oct 28, 2022
@Dzivo
Copy link
Author

Dzivo commented Nov 14, 2022

I was able to fix this by cloning locally first and then trying to clone it in repository. I think you should ask for credentials if user didnt clone it localy first. Maybe also some other types of authentication this is not user friendly at all (just my opinion)

@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug volume Dev Container mounting a Docker volume and removed info-needed Issue requires more information from poster labels Dec 14, 2022
@chrmarti
Copy link
Contributor

Related: #4531

@paule96
Copy link

paule96 commented Jun 14, 2023

For me it's not working even with cloning it first locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers volume Dev Container mounting a Docker volume
Projects
None yet
Development

No branches or pull requests

3 participants