Bug #2120
git_ext not applied when creating repository after project creation
Start date:
08 Nov 2012
Due date:
% Done:
0%
Redmine version:
External issue:
Description
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
Related issues
Associated revisions
History
#1 Updated by Andriy Lesyuk about 12 years ago
- Status changed from New to Open
- Target version set to 0.4.2
#2 Updated by Andriy Lesyuk about 12 years ago
- Status changed from Open to Closed