I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #1762

Repository location edition

Added by Jean-Sébastien Bour over 13 years ago. Updated over 13 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
30 May 2011
Due date:
23 Aug 2011
% Done:

0%

Redmine version:
External issue:

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!

Also available in: Atom PDF

Terms of use | Privacy policy