Fix uploading (#1312). Requires updating git adapters.
This commit is contained in:
+3
-4
@@ -206,10 +206,9 @@ module Precious
|
|||||||
contents = ::File.read(tempfile)
|
contents = ::File.read(tempfile)
|
||||||
reponame = "#{dir}/#{filename}.#{format}"
|
reponame = "#{dir}/#{filename}.#{format}"
|
||||||
|
|
||||||
options = {
|
options = { :message => "Uploaded file to #{dir}/#{reponame}" }
|
||||||
:message => "Uploaded file to #{dir}/#{reponame}",
|
options[:parent] = wiki.repo.head.commit if wiki.repo.head
|
||||||
:parent => wiki.repo.head.commit,
|
|
||||||
}
|
|
||||||
author = session['gollum.author']
|
author = session['gollum.author']
|
||||||
unless author.nil?
|
unless author.nil?
|
||||||
options.merge! author
|
options.merge! author
|
||||||
|
|||||||
Reference in New Issue
Block a user