Skip to content
Snippets Groups Projects

Add routes to allow git actions on snippet repositories

All threads resolved!
Compare and Show latest version
1 file
+ 6
8
Compare changes
  • Side-by-side
  • Inline
@@ -104,14 +104,12 @@ def project_path_match
@@ -104,14 +104,12 @@ def project_path_match
# rubocop:disable Gitlab/ModuleWithInstanceVariables
# rubocop:disable Gitlab/ModuleWithInstanceVariables
def set_project
def set_project
if params[:gl_repository]
@subject, @project, @repo_type, @redirected_path =
@subject, @project, @repo_type = Gitlab::GlRepository.parse(params[:gl_repository])
if params[:gl_repository]
@redirected_path = nil
Gitlab::GlRepository.parse(params[:gl_repository])
elsif params[:project]
elsif params[:project]
@subject, @project, @repo_type, @redirected_path = Gitlab::RepoPath.parse(params[:project])
Gitlab::RepoPath.parse(params[:project])
else
end
@subject, @project, @repo_type, @redirected_path = nil, nil, nil, nil
end
end
end
# rubocop:enable Gitlab/ModuleWithInstanceVariables
# rubocop:enable Gitlab/ModuleWithInstanceVariables
Loading