summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-10-20 14:21:40 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-10-20 14:21:40 +0200
commit55365d368a069d6598f58d71d8891d6c8f06ea66 (patch)
tree3e6e30fbd74a2f1022c1f5d7d78abf2982802937
parentc1212beaa495b5b0c3b805bb1b2a7bdc6d1a941b (diff)
downloadgitlab-ce-55365d368a069d6598f58d71d8891d6c8f06ea66.tar.gz
Only create refs for new deploymentszj-use-iid-deployment-refs
This patch makes sure GitLab does not save the refs to the filesystem each time the deployment is updated. This will save some IO although I expect the impact to be minimal.
-rw-r--r--app/models/deployment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index c843903877b..91d85c2279b 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -11,7 +11,7 @@ class Deployment < ActiveRecord::Base
delegate :name, to: :environment, prefix: true
- after_save :create_ref
+ after_create :create_ref
def commit
project.commit(sha)