dash is legal in git remote names

This commit is contained in:
Joey Hess 2024-06-12 13:24:31 -04:00
parent e224b99f36
commit 0ffb0a4d25
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -65,6 +65,7 @@ makeLegalName s = case filter legal $ replace "/" "_" s of
{- Only alphanumerics, and a few common bits of punctuation common
- in hostnames. -}
legal '_' = True
legal '-' = True
legal '.' = True
legal c = isAlphaNum c