Simpler solution for normalization of uploaded files.

This commit is contained in:
Bart Kamphorst
2018-11-29 09:25:19 +01:00
parent ca9702088f
commit ddfaf8c091
+1 -1
View File
@@ -227,7 +227,7 @@ module Precious
options.merge! author
end
normalize = !(Gollum::File.image?(fullname) || Gollum::File.binary?(fullname))
normalize = Gollum::Page.valid_extension?(fullname)
begin
committer = Gollum::Committer.new(wiki, options)