lib/gitscrub/repository.rb in gitscrub-0.0.6 vs lib/gitscrub/repository.rb in gitscrub-0.0.7

- old
+ new

@@ -1,11 +1,11 @@ module Gitscrub class Repository attr_accessor :grit - def initialize - @grit = Grit::Repo.new(".") + def initialize(location = ".") + @grit = Grit::Repo.new(location) rescue Grit::InvalidGitRepositoryError @grit = nil end def reset