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 validate url. (This was my main issue.)
  • This error message lacks a (space) at the end of the first line, hence the output is URLfor instead of URL 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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information