Skip to content
Browse files

Don't fail if remote upstream repo has no _darcs/format file

  • Loading branch information...
1 parent 1e3ba54 commit 6483d1fe1c460134acf84236a07426e11cf28049 @purcell committed Mar 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 darcs-to-git
View
2 darcs-to-git
@@ -438,7 +438,7 @@ def darcs2_repo?(repo)
false
end
else
- format_file = open(repo.scan(/^(.*?)\/?$/).flatten.first + "/_darcs/format") { |f| f.read }
+ format_file = open(repo.scan(/^(.*?)\/?$/).flatten.first + "/_darcs/format") { |f| f.read } rescue nil
return format_file && (format_file =~ /darcs-2(?:\.|$)/)
end
end

0 comments on commit 6483d1f

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