summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-12-04 12:57:44 -0800
committerMichael Kozono <mkozono@gmail.com>2017-12-04 12:57:44 -0800
commitfcbd2fe62568c55c86de4eeb5969bfe4d82af6ce (patch)
tree87422a6d77109c668a06f6f2de4a937610a16364 /lib
parentca817816801c26847b66d105d07fd4473b015b31 (diff)
downloadgitlab-ce-fcbd2fe62568c55c86de4eeb5969bfe4d82af6ce.tar.gz
Follow symlinks
In particular, the Omnibus uploads directory is generally a symlink.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/background_migration/prepare_untracked_uploads.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/prepare_untracked_uploads.rb b/lib/gitlab/background_migration/prepare_untracked_uploads.rb
index d8cddd98cbb..476c46341ae 100644
--- a/lib/gitlab/background_migration/prepare_untracked_uploads.rb
+++ b/lib/gitlab/background_migration/prepare_untracked_uploads.rb
@@ -92,7 +92,7 @@ module Gitlab
end
def build_find_command(search_dir)
- cmd = %W[find #{search_dir}
+ cmd = %W[find -L #{search_dir}
-type f
! ( -path #{EXCLUDED_HASHED_UPLOADS_PATH} -prune )
! ( -path #{EXCLUDED_TMP_UPLOADS_PATH} -prune )