Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make options a global var (bugfix)

  • Loading branch information...
commit 3ddf951c642fcf79ccd3d69a5958d5dd71165edf 1 parent 53218c8
@nominolo nominolo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 darcs-to-git
View
6 darcs-to-git
@@ -17,7 +17,7 @@ require 'optparse'
# GIT_DARCS_BRANCH = "darcs_repo" # name of the branch we import to
GIT_PATCHES = ".git/darcs_patches"
-options = { :default_email => '' }
+OPTIONS = { :default_email => '' }
opts = OptionParser.new do |opts|
opts.banner = "Creates git repositories from darcs repositories
@@ -43,7 +43,7 @@ OPTIONS
"
opts.on('-e','--default-email ADDRESS',
"Set the email address used when no explicit address is given") do |m|
- options[:default_email] = m
+ OPTIONS[:default_email] = m
end
end
opts.parse!
@@ -149,7 +149,7 @@ class DarcsPatch
email = $1
[email.split('@').first, email]
else
- [author, options[:default_email]]
+ [author, OPTIONS[:default_email]]
end
@author_name = decode_darcs_escapes(@author_name)
# XXX: do the same for names/comments?
Please sign in to comment.
Something went wrong with that request. Please try again.