summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-09-06 23:19:23 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-06 23:19:23 +0900
commit4b8c52f2fc13711ca54bd5274bc1041f69607eb5 (patch)
treede47991695ba5abe2cc2665773f1bdf6aae46838
parentf7da15bae3e41e1a3fe30918887928c8908ccbe3 (diff)
downloadgitlab-ce-4b8c52f2fc13711ca54bd5274bc1041f69607eb5.tar.gz
Fix /models/ci/pipeline.rb
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index f51b7d7d2a7..fe8f12df70b 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -38,7 +38,7 @@ module Ci
validates :status, presence: { unless: :importing? }
validate :valid_commit_sha, unless: :importing?
- # before_save :set_protected
+ before_save :set_protected
after_create :keep_around_commits, unless: :importing?
enum source: {