Project

General

Profile

Actions

Feature #13038

closed

Base path for filesystem repository adapter

Added by Anonymous about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

It would be very helpful to have a field in administrative settings for a custom root when using file system repositories. Preventing access to '/' for every project's manager would be quite a challenge, so limiting that risk to admin users goes a long way.

I don't have the skills to offer an example patch, but it seems as simple as:

  1. Adding a value to the settings table
  2. Adding a form field to the administrative repository settings page that writes to that value
  3. Updating /lib/redmine/scm/adapters/filesystem_adapter.rb to include that value when it defines @url

Correct me if I'm wrong about the scope of work.

And thanks!


Related issues

Related to Redmine - Feature #1415: Let system administrator limit repositories valid sourcesClosedJean-Philippe Lang2008-06-09

Actions
Actions

Also available in: Atom PDF