Changing from using branch as the variable to using ref.

This commit is contained in:
Randy Merrill
2011-01-27 11:38:48 -08:00
parent 2bb1937fa9
commit a71ab7c418
4 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ module Gollum
# Returns an array of Grit::Commit instances.
def parents
@parents ||= begin
arr = [@options[:parent] || @wiki.repo.commit(@wiki.branch)]
arr = [@options[:parent] || @wiki.repo.commit(@wiki.ref)]
arr.flatten!
arr.compact!
arr