lib/heirloom/directory/git_directory.rb in heirloom-0.3.1 vs lib/heirloom/directory/git_directory.rb in heirloom-0.4.0
- old
+ new
@@ -10,10 +10,10 @@
@path = args[:path]
end
def commit(sha = nil)
repo = Repo.new @path
- if sha
+ if sha
commit = repo.commits(sha)
commit ? commit.first : false
else
repo.commits.first
end