Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2017-10-12 14:32:17 +0300
committerAhmad Sherif <me@ahmadsherif.com>2017-10-12 15:20:04 +0300
commita24abf39bf78226baaad03fe45caf416dbfc9b74 (patch)
tree0bd47cb0afa255020ddef8eacc8ae6ab348ab034 /lib/gitlab/git/repository.rb
parent4378f56c7b1f6f6031c284ff8879cdc4ad79468f (diff)
Fix the format of rugged alternate directory list
Fixes #39046
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r--lib/gitlab/git/repository.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index a082cfed706..86c29a15a3d 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -1230,6 +1230,7 @@ module Gitlab
relative_paths.map { |d| File.join(path, d) }
else
Gitlab::Git::Env.all.values_at(*ALLOWED_OBJECT_DIRECTORIES_VARIABLES)
+ .flatten
.compact
.flat_map { |d| d.split(File::PATH_SEPARATOR) }
end