diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 14:51:28 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 14:51:28 +0300 |
commit | 5064c9038c1ae2fa6c48bc46c58f49c72ff1963a (patch) | |
tree | ba007fd7cc9721b72e8438b28f6b33de990e2d20 /app/models | |
parent | 782c8f9aa0a32def807da126e9f07f278772b6a2 (diff) |
Fix next bunch of tests
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 30a8b5aa816..89af83d8efc 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -146,6 +146,10 @@ module Ci delegate :sha, :short_sha, :project, to: :commit, prefix: false + def before_sha + Gitlab::Git::BLANK_SHA + end + def trace_html html = Ci::Ansi2html::convert(trace) if trace.present? html || '' |