Skip to content
Snippets Groups Projects

Add routes to allow git actions on snippet repositories

All threads resolved!
8 files
+ 61
31
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -87,7 +87,7 @@ def access
@@ -87,7 +87,7 @@ def access
@access ||= access_klass.new(access_actor, container, 'http',
@access ||= access_klass.new(access_actor, container, 'http',
authentication_abilities: authentication_abilities,
authentication_abilities: authentication_abilities,
namespace_path: params[:namespace_id],
namespace_path: params[:namespace_id],
project_path: project_path,
repository_path: repository_path,
redirected_path: redirected_path,
redirected_path: redirected_path,
auth_result_type: auth_result_type)
auth_result_type: auth_result_type)
end
end
@@ -109,8 +109,8 @@ def access_klass
@@ -109,8 +109,8 @@ def access_klass
@access_klass ||= repo_type.access_checker_class
@access_klass ||= repo_type.access_checker_class
end
end
def project_path
def repository_path
@project_path ||= params[:repository_id].sub(/\.git$/, '')
@repository_path ||= params[:repository_id].sub(/\.git$/, '')
end
end
def log_user_activity
def log_user_activity
Loading