lib/method_log/repository.rb in method_log-0.0.1 vs lib/method_log/repository.rb in method_log-0.0.2
- old
+ new
@@ -4,10 +4,10 @@
module MethodLog
class Repository
attr_reader :commits
- def initialize(path:)
+ def initialize(path: nil)
@repository = Rugged::Repository.new(path)
@commits = []
if @repository.ref('refs/heads/master')
@repository.walk(@repository.last_commit) do |commit|
@commits << build_commit(sha: commit.oid)
\ No newline at end of file