diff --git a/lib/gollum/committer.rb b/lib/gollum/committer.rb index fcf2a159..3f7df6d6 100644 --- a/lib/gollum/committer.rb +++ b/lib/gollum/committer.rb @@ -60,9 +60,9 @@ module Gollum # Public: The parent commits to this pending commit. # # Returns an array of Grit::Commit instances. - def parents + def parents(ref = @wiki.ref) @parents ||= begin - arr = [@options[:parent] || @wiki.repo.commit(@wiki.ref)] + arr = [@options[:parent] || @wiki.repo.commit(ref)] arr.flatten! arr.compact! arr