Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More strictly limit tag formats, according to git-check-ref-format (f…

…ixes #11)
  • Loading branch information...
commit 0be8ed0c5150d5ce6e42d1737a72c79b3100e9ba 1 parent ef533e4
@purcell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  darcs-to-git
View
2  darcs-to-git
@@ -293,7 +293,7 @@ class DarcsPatch
def safe_patch_name(darcs_name)
# See 'man git-check-ref-format'
- darcs_name.gsub(/(?:[\s:*]+|\.{2,}|\#\{|^\.|\.$)/, '_')
+ darcs_name.gsub(/\/+/, '/').gsub(/(?:[\s~\^\\:*\?\[]+|\.{2,}|\#\{|^\.|\.$|^\/|\/$|[^\040-\177])/, '_').gsub(/_+/, '_')
end
def <=>(other)
Please sign in to comment.
Something went wrong with that request. Please try again.