Adding the logic to accept a command line flag for the branch to use to retrieve pages.

This commit is contained in:
Randy Merrill
2011-01-27 11:24:15 -08:00
parent f708dc7002
commit 3c44205be7
4 changed files with 33 additions and 12 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('master')]
arr = [@options[:parent] || @wiki.repo.commit(@wiki.branch)]
arr.flatten!
arr.compact!
arr