summaryrefslogtreecommitdiff
path: root/lib/backup
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-02-24 13:18:07 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2017-03-03 18:33:47 +0100
commitd13669c98b5b2c15cfff8b65e12ce1ef0911f1cd (patch)
treef93a961ecccfae638d7e3be456f2ebf48ed1df98 /lib/backup
parentefff35e96873bd3bea0afceb1d3cd102280813f5 (diff)
downloadgitlab-ce-d13669c98b5b2c15cfff8b65e12ce1ef0911f1cd.tar.gz
Remove remnants of git annex
Diffstat (limited to 'lib/backup')
-rw-r--r--lib/backup/repository.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb
index d16d5ba4960..3c4ba5d50e6 100644
--- a/lib/backup/repository.rb
+++ b/lib/backup/repository.rb
@@ -180,9 +180,8 @@ module Backup
return unless Dir.exist?(path)
dir_entries = Dir.entries(path)
- %w[annex custom_hooks].each do |entry|
- yield(entry) if dir_entries.include?(entry)
- end
+
+ yield('custom_hooks') if dir_entries.include?('custom_hooks')
end
def prepare