Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 14:51:28 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-05 14:51:28 +0300
commit5064c9038c1ae2fa6c48bc46c58f49c72ff1963a (patch)
treeba007fd7cc9721b72e8438b28f6b33de990e2d20 /app/models
parent782c8f9aa0a32def807da126e9f07f278772b6a2 (diff)
Fix next bunch of tests
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb4
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 || ''