Skip to content
Snippets Groups Projects
Commit 1cb75998 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by blackst0ne
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 8979567e
No related branches found
No related tags found
1 merge request!9252Add merge request count to each issue on issues list
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.
Please register or to comment