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

bug: not able to sync a git repository on Azure DevOps Services #5077

Closed
wvandeun opened this issue Nov 27, 2024 · 1 comment
Closed

bug: not able to sync a git repository on Azure DevOps Services #5077

wvandeun opened this issue Nov 27, 2024 · 1 comment
Assignees
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

Component

Git Integration

Infrahub version

1.0.7

Current Behavior

It seems that we are not able to sync a git repository that is hosted on Azure DevOps Services.

After setting the environment variable GIT_TERMINAL_PROMPT to 0 and then creating the repository in Infrahub, you will receive this error message:

remote: TF401019: The Git repository with name or identifier infrahub.git does not exist or you do not have permissions for the operation you are attempting.
fatal: repository 'https://dev.azure.com/organization/project/_git/project.git/' not found

Infrahub automatically appends .git at the end of the repository URL when it is not provided. It seems that this does not work for Azure DevOps.

Cloning the repository on your pc, using the URL with .git appended will give you exactly the same error message. Cloning the repository on your pc, using the URL as is, works as expected.

Expected Behavior

The repository node is successfully created.

Steps to Reproduce

  • create a project under an organization in Azure DevOps
  • create the repository as a CoreRepository in Infrahub

Additional Information

No response

@wvandeun wvandeun added type/bug Something isn't working as expected group/backend Issue related to the backend (API Server, Git Agent) labels Nov 27, 2024
@ogenstad ogenstad self-assigned this Nov 28, 2024
@ogenstad
Copy link
Contributor

Fixed in #5078.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants