Project

General

Profile

Actions

Feature #23868

open

Automatically link a project to several repositories

Added by Vincent Robert over 8 years ago. Updated about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM extra
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Hi
I wanted to use the extra/svn/reposman.rb script in order to automatically generate both svn and git repositories on every new project.
But current scripts cancel the creation of every new repo as soon as one is already present.

I think these scripts (particularly the create_project_repository action in sys_controller) should check current repositories and let us create a new repository if the type (svn, git, etc.) is different.

Thank you


Related issues

Related to Redmine - Defect #18479: Can't use reposman.rb to create both git and svn repositoriesNew

Actions
Actions #1

Updated by Vincent Robert over 8 years ago

I have just seen I am not the first trying to do this: #18479

Actions #2

Updated by Toshi MARUYAMA about 8 years ago

  • Related to Defect #18479: Can't use reposman.rb to create both git and svn repositories added
Actions #3

Updated by Anonymous about 6 years ago

+1 Not just create, but
  • Maybe give a button to create a new linked local repository when adding it to a project, where Redmine would also automatically add users, who are listed in the project as participants with commit permissions issued via Redmine (have users linked). I think OpenProject actually had it implemented like that.
  • Also a button to remove the created repository upon un-link from the project which would erase the repo completely.
  • Enable the Redmine administrators to be able to manage the repositories from the Redmine website itself (giving more control by adding some sort of repo control panel), like reverts, branch merging and etc, ditching the need of using CLI, Turtoise SVN or anything else third party when unnecessary.
  • At some point maybe the ability to create the new and edit the existing files via Redmine itself like on GitLab.
  • Display Readme.md somewhere.
Actions #4

Updated by Wim Bertels about 6 years ago

  • both repos do get created
  • but only one gets registered in redmine (that is the problem)
    • in the repositories table
    • (unfortunately it also updates the tokens table which makes it more difficult)
    • registered: as you would do manually through the settings tab
Actions

Also available in: Atom PDF