]> dgit.raspbian.org Git - git-annex.git/commitdiff
dash is legal in git remote names
authorJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 17:24:31 +0000 (13:24 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 12 Jun 2024 17:24:31 +0000 (13:24 -0400)
Git/Remote.hs

index 4eb6780fcc7bd4496cead098e4f85985badbf233..8990509d602db4f0c2e7f73a2f90de2417d16bb7 100644 (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