lib/heirloom/directory/git_directory.rb in heirloom-0.1.3 vs lib/heirloom/directory/git_directory.rb in heirloom-0.1.4

- old
+ new

@@ -4,16 +4,17 @@ module Heirloom class GitDirectory + attr_accessor :path + def initialize(args) - @directory = args[:directory] - @logger = args[:logger] + self.path = args[:path] end def commit(sha = nil) - r = Repo.new @directory + r = Repo.new path sha ? r.commits(sha).first : r.commits.first end end end