diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-20 14:21:40 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-20 14:21:40 +0200 |
commit | 55365d368a069d6598f58d71d8891d6c8f06ea66 (patch) | |
tree | 3e6e30fbd74a2f1022c1f5d7d78abf2982802937 | |
parent | c1212beaa495b5b0c3b805bb1b2a7bdc6d1a941b (diff) | |
download | gitlab-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.rb | 2 |
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) |