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

Error in git clone of Azure Devops project with a space #1079

Closed
Cova opened this issue Jun 12, 2020 · 1 comment
Closed

Error in git clone of Azure Devops project with a space #1079

Cova opened this issue Jun 12, 2020 · 1 comment

Comments

@Cova
Copy link

Cova commented Jun 12, 2020

We have a space in the project name of our Azure Devops project, which is causing a problem with cloning the repo to the box running Atlantis.

From the Atlantis output:

2020/06/11 19:38:26-0600 [EROR] nait-its/Azure Deployment/terraform#28: Running git clone --branch RobTest --depth=1 --single-branch https://:@dev.azure.com/nait-its/Azure Deployment/_git/terraform /home/rob/.atlantis/repos/nait-its/Azure Deployment/terraform/28/default: Cloning into '/home/rob/.atlantis/repos/nait-its/Azure Deployment/terraform/28/default'...
fatal: unable to access 'https://:@dev.azure.com/nait-its/Azure Deployment/_git/terraform/': The requested URL returned error: 400

Taking that git clone command and running it manually in another terminal results in the identical error:

$ git clone --branch RobTest --depth=1 --single-branch 'https://@dev.azure.com/NAIT-ITS/Azure Deployment/_git/terraform' test
Cloning into 'test'...
fatal: unable to access 'https://@dev.azure.com/NAIT-ITS/Azure Deployment/_git/terraform/': The requested URL returned error: 400

But by manually url-encoding the url, the clone works fine:

$ git clone --branch RobTest --depth=1 --single-branch 'https://@dev.azure.com/NAIT-ITS/Azure%20Deployment/_git/terraform' test
Cloning into 'test'...
remote: Azure Repos
remote: Found 110 objects to send. (98 ms)
Receiving objects: 100% (110/110), 35.79 KiB | 11.93 MiB/s, done.
Resolving deltas: 100% (8/8), done.

@mcdafydd
Copy link
Contributor

Thanks for the report, @Cova! I should have some time to start reviewing this and the other recent Azure Devops issues later this week or early next week.

@lkysow lkysow closed this as completed in 0aea14a Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants