Fix uploading (#1312). Requires updating git adapters.

This commit is contained in:
Bart Kamphorst
2019-08-23 20:24:18 +02:00
parent 976f55e1b2
commit e1aa4c02a0
+3 -4
View File
@@ -206,10 +206,9 @@ module Precious
contents = ::File.read(tempfile)
reponame = "#{dir}/#{filename}.#{format}"
options = {
:message => "Uploaded file to #{dir}/#{reponame}",
:parent => wiki.repo.head.commit,
}
options = { :message => "Uploaded file to #{dir}/#{reponame}" }
options[:parent] = wiki.repo.head.commit if wiki.repo.head
author = session['gollum.author']
unless author.nil?
options.merge! author