Open criscola opened 2 years ago
I think ArgoCD should automatically add .git
suffix if does not exist in repo's URL.
This error also occurs if the repo is empty and argocd is trying to connect to it (with .git in the url)
This also occurs after migrating my git host to a new domain. why doesn't it "simply" follow redirects?
This also happens when you try and use a private repo for which you don't have a credential secret defined.
This error also occurs if the repo is empty and argocd is trying to connect to it (with .git in the url)
.git is the answer
Checklist:
argocd version
.Describe the bug
When trying to sync repos, I get
rpc error: code = Unknown desc = unexpected client error: unexpected requesting "https://gitlab.com/criscola/capi-gce-demo-argocd/info/refs?service=git-upload-pack" status code: 301
I've had a look at this of course: https://github.com/argoproj/argo-cd/issues/2640 but it didn't solve my problem.
To Reproduce
I added my repository like that:
argocd repo add git@gitlab.com:criscola/capi-gce-demo-argocd.git --ssh-private-key-path ~/.ssh/id_ed25519
I then switched to using HTTPS and it worked. As you can see I've added the suffix
.git
to the repo's URL.Expected behavior
My Applications should sync fine.
Screenshots
-
Version
Logs
-