lib/heirloom/directory/git_directory.rb in heirloom-0.2.0 vs lib/heirloom/directory/git_directory.rb in heirloom-0.3.0.rc1

- old
+ new

@@ -11,11 +11,11 @@ def initialize(args) self.path = args[:path] end def commit(sha = nil) - r = Repo.new path - sha ? r.commits(sha).first : r.commits.first + repo = Repo.new path + sha ? repo.commits(sha).first : repo.commits.first end end end