Merge pull request #1122 from patthoyts/pt/missing-log

Create the githost.log file if necessary.
This commit is contained in:
Dmitriy Zaporozhets 2012-07-25 01:50:34 -07:00
commit 60d3e94874

View file

@ -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