Skip to content
Browse files

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

…ixes #11)
  • Loading branch information...
1 parent ef533e4 commit 0be8ed0c5150d5ce6e42d1737a72c79b3100e9ba @purcell committed Feb 6, 2012
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)

0 comments on commit 0be8ed0

Please sign in to comment.
Something went wrong with that request. Please try again.