Commit 6035ad7e authored by Pat Thoyts's avatar Pat Thoyts

Create the githost.log file if necessary.

This resolves issue #1121.
Signed-off-by: default avatarPat Thoyts <patthoyts@users.sourceforge.net>
parent 8b7e404b
...@@ -10,6 +10,7 @@ module Gitlab ...@@ -10,6 +10,7 @@ module Gitlab
def self.read_latest def self.read_latest
path = Rails.root.join("log/githost.log") path = Rails.root.join("log/githost.log")
self.build unless File.exist?(path)
logs = File.read(path).split("\n") logs = File.read(path).split("\n")
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment