lib/hillary/repo.rb in hillary-0.0.4 vs lib/hillary/repo.rb in hillary-0.0.5
- old
+ new
@@ -23,9 +23,11 @@
DateTime.now.strftime(PRODUCTION_TAG_FORMAT)
end
end
def initialize(dir, logger = Logger.new($stdout))
+ Grit.debug = true if ENV['DEBUG']
+
@name = Pathname.new(File.expand_path(dir)).basename
@repo = Grit::Repo.new(dir)
@logger = logger
logger.formatter = proc{|_, _, _, msg| msg + "\n"}
end