Patch #2095
Git repositories are always created without .git extension
Start date:
24 Jul 2012
Due date:
14 Nov 2012
% Done:
100%
Redmine version:
External issue:
Description
During creation of a new Git repository the URL field always showed something like /path/to/git/repo.git
.
After clicking Create new repository
the created repository was always /path/to/git/repo
and it was missing the .git
extension.
To fix this I had to change the following line:
--- lib/scm_repositories_controller_patch.rb (revision 118)
+++ lib/scm_repositories_controller_patch.rb (working copy)
@@ -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
I hope this helps and is the correct patch.
Related issues
Associated revisions
History
#1 Updated by Manfred Kröhnert over 12 years ago
- File patch.diff View added
Patch attached as the formatter seems to mess the inline patch.
#2 Updated by Andriy Lesyuk about 12 years ago
- Assignee set to Andriy Lesyuk
- Target version set to 0.4.2
#3 Updated by Andriy Lesyuk about 12 years ago
- Due date set to 14 Nov 2012
- Status changed from New to Closed
- % Done changed from 0 to 100