summaryrefslogtreecommitdiff
path: root/lib/api/helpers/internal_helpers.rb
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-06-15 17:03:54 -0700
committerMichael Kozono <mkozono@gmail.com>2017-06-16 14:14:19 -0700
commitaf784cc6e22ca915f20111828ae3252619834419 (patch)
treec3afca6b57a9326f7a27adf20b65df713ffc13db /lib/api/helpers/internal_helpers.rb
parent3a38e5f1ab914bc4eaeecda6e18caaa7ca9ea5a7 (diff)
downloadgitlab-ce-af784cc6e22ca915f20111828ae3252619834419.tar.gz
Add “Project moved” error to Git-over-SSH
Diffstat (limited to 'lib/api/helpers/internal_helpers.rb')
-rw-r--r--lib/api/helpers/internal_helpers.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/api/helpers/internal_helpers.rb b/lib/api/helpers/internal_helpers.rb
index d3732d67622..5e9cf5e68b1 100644
--- a/lib/api/helpers/internal_helpers.rb
+++ b/lib/api/helpers/internal_helpers.rb
@@ -10,6 +10,10 @@ module API
set_project unless defined?(@project)
@project
end
+
+ def redirected_path
+ @redirected_path
+ end
def ssh_authentication_abilities
[
@@ -38,8 +42,9 @@ module API
def set_project
if params[:gl_repository]
@project, @wiki = Gitlab::GlRepository.parse(params[:gl_repository])
+ @redirected_path = nil
else
- @project, @wiki = Gitlab::RepoPath.parse(params[:project])
+ @project, @wiki, @redirected_path = Gitlab::RepoPath.parse(params[:project])
end
end