summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-08-30 21:15:06 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-08-30 22:01:23 +0800
commitc5553ce772371295d2d7652cec899633042fae07 (patch)
treeeb8f9a5ede93f7edaa8dd1eeb8960b95f9697dd0 /lib/tasks
parent86149a82168e9aead7ce6841c69705662f8a6e54 (diff)
downloadgitlab-ce-c5553ce772371295d2d7652cec899633042fae07.tar.gz
Use `git update-ref --stdin -z` to delete refs36807-gc-unwanted-refs-after-import
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/cleanup.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/cleanup.rake b/lib/tasks/gitlab/cleanup.rake
index f76bef5f4bf..8ae1b6a626a 100644
--- a/lib/tasks/gitlab/cleanup.rake
+++ b/lib/tasks/gitlab/cleanup.rake
@@ -111,7 +111,7 @@ namespace :gitlab do
next unless id > max_iid
project.deployments.find(id).create_ref
- rugged.references.delete(ref)
+ project.repository.delete_refs(ref)
end
end
end