diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-30 12:53:35 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-30 12:53:35 +0100 |
commit | 9293842d096bf8de9d13ce2a714c646ffba27eb5 (patch) | |
tree | 7ef72372e2c645fbd838778a2f00d195e0cc5b15 | |
parent | 5df4ba0a93fd266105ccf35fd49fa18e6403c15b (diff) | |
download | gitlab-ce-9293842d096bf8de9d13ce2a714c646ffba27eb5.tar.gz |
Do not set pipeline source after initialization
-rw-r--r-- | app/models/ci/pipeline.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index fd64670f6b0..eebbf7c4218 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -40,7 +40,6 @@ module Ci validates :status, presence: { unless: :importing? } validate :valid_commit_sha, unless: :importing? - after_initialize :set_config_source, if: :new_record? after_create :keep_around_commits, unless: :importing? enum source: { |