Skip to content
Snippets Groups Projects
Commit 1cb75998 authored by Z.J. van de Weg's avatar Z.J. 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
......@@ -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)
......
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