Create the githost.log file if necessary.
This resolves issue #1121. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
parent
8b7e404b5b
commit
6035ad7e1f
|
@ -10,6 +10,7 @@ module Gitlab
|
|||
|
||||
def self.read_latest
|
||||
path = Rails.root.join("log/githost.log")
|
||||
self.build unless File.exist?(path)
|
||||
logs = File.read(path).split("\n")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue