diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-12-04 12:57:44 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-12-04 12:57:44 -0800 |
commit | fcbd2fe62568c55c86de4eeb5969bfe4d82af6ce (patch) | |
tree | 87422a6d77109c668a06f6f2de4a937610a16364 /lib | |
parent | ca817816801c26847b66d105d07fd4473b015b31 (diff) | |
download | gitlab-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.rb | 2 |
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 ) |