Simpler solution for normalization of uploaded files.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user