Issue with Cloning a Specific Branch from a Private GitLab Repo Using SSH in Envbuilder
Hi everyone,
I'm encountering an issue when using Envbuilder with SSH for cloning private repositories. Here's what I've noticed:
When I work with a public repository and use HTTPS, everything works fine. I can clone the main branch and even specify another branch, as described in the documentation, like this:
However, when I switch to a private repository that requires SSH authentication, I can successfully clone the main branch, but I'm unable to specify a different branch (e.g., sample-branch). Here's the Git URL format I'm using for the private repo:
The error I get in the logs when trying to clone with a specified branch is:
Am I making any syntax errors, or has anyone else faced a similar issue when using SSH and specifying a branch? Any advice or guidance on how to resolve this would be greatly appreciated.
Thanks in advance for your help!
3 Replies
<#1354136229498585158>
Category
Bug report
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey @Mikel try getting rid of the trailing slash at the end of your URL
ah nevermind, didn't read the full thing
yeah I don't think it's possible with SSH, i'll try/ask
Hey @Phorcys thanks for your answer, in the meantime I was able to clone the private repo with deploy tokens using https but it would be nice to know more about the SSH limitations 🙂