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:
authorStan Hu <stanhu@gmail.com>2015-06-22 17:33:32 +0300
committerStan Hu <stanhu@gmail.com>2015-06-23 15:49:19 +0300
commit774b7ee277bbad5bbd16a23664cbc2ba7f3b6499 (patch)
treeba51e02046f8d0f262f04f45425a757bce8b60f5 /app/helpers/submodule_helper.rb
parent883438970df30ac7101d8f32b30007c4248c75d5 (diff)
Fix Error 500 when relative submodule resolves to a namespace that has a different name from its path
Closes #1849
Diffstat (limited to 'app/helpers/submodule_helper.rb')
-rw-r--r--app/helpers/submodule_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/submodule_helper.rb b/app/helpers/submodule_helper.rb
index 6def7793dc3..b3f50ceebe4 100644
--- a/app/helpers/submodule_helper.rb
+++ b/app/helpers/submodule_helper.rb
@@ -63,7 +63,7 @@ module SubmoduleHelper
namespace = components.pop.gsub(/^\.\.$/, '')
if namespace.empty?
- namespace = @project.namespace.name
+ namespace = @project.namespace.path
end
[