git_ext not applied when creating repository after project creation
The git_ext option adds a default extension to git repositories, and it works well when creating a new project and auto-creating a repository in the process.
However, when creating the repository after the project has been created, the git_ext option has no effect.
Here’s a small patch that fixes the issue:
--- vendor/plugins/redmine_scm/lib/scm_repositories_controller_patch.rb.orig 2012-11-08 13:31:43.000000000 +0800 +++ vendor/plugins/redmine_scm/lib/scm_repositories_controller_patch.rb 2012-11-08 13:32:02.000000000 +0800 @@ -220,7 +220,7 @@ def scm_create_repository(repository, interface, url) name = interface.repository_name(url) if name - path = interface.path(name) + path = interface.default_path(name) if File.directory?(path) repository.errors.add(:url, :already_exists) else
#1 Updated by Andriy Lesyuk over 10 years ago
- Status changed from New to Open
- Target version set to 0.4.2
#2 Updated by Andriy Lesyuk over 10 years ago
- Status changed from Open to Closed