Skip to content
Snippets Groups Projects
Commit 55365d36 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Only create refs for new deployments

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.
parent c1212bea
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment