From 364b2b85aeb8980bd12daa601b088603866f09b5 Mon Sep 17 00:00:00 2001 From: Randy Merrill Date: Thu, 27 Jan 2011 12:46:29 -0800 Subject: [PATCH] Moving the `ref` to be an argument to the parents that defaults to the `@wiki.ref` --- lib/gollum/committer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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