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
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue