Skip to content
Browse files

Escape dots in tag names

Git does not accept dots in tag names, replace them with
underscores.

Signed-off-by: Steve Purcell <steve@sanityinc.com>
  • Loading branch information...
1 parent 7040a12 commit a19b75df1fe5fa6fa999501e4b23edb04cad395f @kerneis kerneis committed with Mar 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 darcs-to-git
View
2 darcs-to-git
@@ -239,7 +239,7 @@ class DarcsPatch
self.name = patch_xml.get_elements('name').first.get_text.value.darcs_unescape rescue 'Unnamed patch'
self.comment = patch_xml.get_elements('comment').first.get_text.value.darcs_unescape rescue nil
if (self.is_tag = (self.name =~ /^TAG (.*)/))
- self.git_tag_name = $1.gsub(/[\s:]+/, '_')
+ self.git_tag_name = $1.gsub(/[\s:.]+/, '_')
end
@git_author_name, @git_author_email = AUTHOR_MAP[author]
end

0 comments on commit a19b75d

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