Can't set up Git storage on non-GitHub/GitLab provider
I tried to set up a Codeberg repo with the Git storage options, unfortunately, that was not possible. I've tried to parse the code, so things I found:
-
This line appears to validate the wrong URL variable, namely it validates
ssh_url
, but it should validateurl
. (This was my main issue.) -
This error message lacks a
URLfor
instead ofURL for
. - In multiple spots, such as here, script checks for the
git@
user name. While that user name is in use across many Git host instances, this is definitely not a universal user name--I use a service that has a different user name for Git access set up on a daily basis. It would be much better if this just checked for[a-z0-9_-]+@
or a similar expression.