almenscorner / intunecd-monitor

IntuneCD front end, monitor configurations and changes in Intune
MIT License
91 stars 8 forks source link

Error when Backup to Azure Devops: Could not clone REpo #43

Open bitsele opened 1 month ago

bitsele commented 1 month ago

Hi, I get an error if I want to use git Repo within AzureDevops. If I'm using github everything works fine and straight forward. But if I try to use a repo from Azure Devops I encounter an error, that it is not possible to clone the repository.

I dived into the code an find the URL wich is crafted to clone the repo. I suggest that there is the problem. If I rebuild this URL manually and try to open it with a browser then on github I'm redirected to my repo. But on AzureDevops the redirect points to an empty site named "files". After a refresh of the page then the repo in Azure DevOps will show up.

Anyone else having this problem ? Maybe I have to use another format of the URL for Azure DevOps repo?

Greetz, Sebastian

mickyc1 commented 1 month ago

Hi Sebastian, is there by any chance a space in your project name in DevOps? I've been able to replicate this with 2 of my projects, one with a space in the name and the other with no space and the one with the space has the same behaviour you mentioned above, goes to an empty site named files. The other site goes directly to the repo. The space in the name is encoded to %20 which I suspect is causing the issue for you.