Bug #1762
Repository location edition
0%
Description
When you edit a project’s repository location, the existing repository (on disk) is still at previous location. What would be the best ?
- forbid
created_with_scm
repository location edition ? - move the repository to the new location ?
- another idea ?
History
#1 Updated by Andriy Lesyuk over 13 years ago
- Status changed from New to Incomplete
Did not get it... You can’t edit repo - only destroy? Anyway from the options I would choose “move”...
#2 Updated by Jean-Sébastien Bour over 13 years ago
Simple use case :
- create a project “test”
- add it a handled SCM with Redmine-created repository (via
auto_create
feature, or not, it doesn’t matter) - all is cool and you have your repo in <git-path>/test.git
- go to project configuration, repository tab
- change repo path from <git-path>/test.git to <git-path>/whatever.git
- repo is still at <git-path>/test.git on disk, and the project repository tab is “broken” of course
But maybe I have and old version of Redmine and now the path isn’t editable anymore?
#3 Updated by Andriy Lesyuk over 13 years ago
Check app/helpers/repositories_helper.rb
. Should be:
def git_field_tags(form, repository)
content_tag('p', form.text_field(:url, :label => 'Path to .git directory', :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)))
end
#4 Updated by Jean-Sébastien Bour over 13 years ago
Oh, here it is :
def git_field_tags(form, repository) content_tag('p', form.text_field(:url, :label => 'Path to .git directory', :size => 60, :required => true, :enabled => (repository && !repository.root_url.blank?))) end
Indeed I understand why you didn't understand Guess we should upgrade, but y'know, what's already in production...
#5 Updated by Andriy Lesyuk over 13 years ago
In this case I guess the issue can be closed?
#6 Updated by Andriy Lesyuk over 13 years ago
- Due date set to 23 Aug 2011
- Status changed from Incomplete to Won't Fix
Ok... Closing it!