From 774b7ee277bbad5bbd16a23664cbc2ba7f3b6499 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Mon, 22 Jun 2015 07:33:32 -0700 Subject: Fix Error 500 when relative submodule resolves to a namespace that has a different name from its path Closes #1849 --- app/helpers/submodule_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') 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 [ -- cgit v1.2.1