Browse files

Make version detection handle darcs 2.5, ie. don't assume a three-par…

…t version number
  • Loading branch information...
1 parent 10c9e8e commit bfa117a235cd01db765a245550e5743096242091 @purcell committed Dec 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 darcs-to-git
View
2 darcs-to-git
@@ -416,7 +416,7 @@ end
# Pre-flight checks
# -------------------------------------------------------------------------------
-DARCS_VERSION = output_of(*%w(darcs -v)).scan(/(\d+)\.(\d+)\.(\d+)/).flatten.map {|v| v.to_i}
+DARCS_VERSION = output_of(*%w(darcs -v)).scan(/(\d+)\.(\d+)(?:\.(\d+))?/).flatten.map {|v| v.to_i}
def darcs2_repo?(repo)
begin

0 comments on commit bfa117a

Please sign in to comment.