summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-22 07:33:32 -0700
committerStan Hu <stanhu@gmail.com>2015-06-23 05:49:19 -0700
commit774b7ee277bbad5bbd16a23664cbc2ba7f3b6499 (patch)
treeba51e02046f8d0f262f04f45425a757bce8b60f5 /app/helpers
parent883438970df30ac7101d8f32b30007c4248c75d5 (diff)
downloadgitlab-ce-774b7ee277bbad5bbd16a23664cbc2ba7f3b6499.tar.gz
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')
-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
[