Patch #1783

automatic repository creation

Added by pietro abate almost 11 years ago.

Status:NewStart date:2008-08-13
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-

Description

Hello everybody. This is my first patch. Be nice. I'm a ruby, rails and redmine newbie.

The patch attached (generated from git following [1]) adds the ability for the
project manager to decide weather to specify an external repository, or to
have one automatically created for him/her on the hosting site.

I've added a new script repomangen that works exactly as repoman, but ideally
for all kind of scm.

In the process I think I've also found a bug in app/controllers/sys_controller.rb
but since I'm not really sure that it's really a bug I'm bundling everything together.

I think this patch still needs some love, but I'd love to see it upstream, or at least
for testing, in John Goerzen git repo.

Comments are welcome.

[1]http://www.redmine.org/wiki/1/RedmineGitTracking

autorepo.diff Magnifier (17.4 KB) pietro abate, 2008-08-13 16:42


Related issues

Related to Redmine - Patch #986: Clone remote git repository Closed 2008-04-03
Related to Redmine - Feature #6892: Automatic repository creation. New 2010-11-15

History

#1 Updated by Nicolas Chuche almost 11 years ago

The patch attached (generated from git following [1]) adds the ability for the
project manager to decide weather to specify an external repository, or to
have one automatically created for him/her on the hosting site.

Done in trunk. In reposman of trunk if you add a project without a repository reposman will create it else reposman do nothing. There's no autocreate button for the moment to keep it simple (an empty repository cost almost nothing in space).

There's no way for the moment to specify the kind of repository you want. I'm not sure that's many people are interested in such feature and I would like to work on other part for the moment (like accessing distant git repository through a local clone made by redmine)

I've added a new script repomangen that works exactly as repoman, but ideally
for all kind of scm.

I've worked on something like that, it's commited in trunk. Git is handled natively and you can use external script for other SCM.

In the process I think I've also found a bug in app/controllers/sys_controller.rb
but since I'm not really sure that it's really a bug I'm bundling everything together.

Yes, fixed in trunk.

I think this patch still needs some love, but I'd love to see it upstream, or at least
for testing, in John Goerzen git repo.

Comments are welcome.

[1]http://www.redmine.org/wiki/1/RedmineGitTracking

Also available in: Atom PDF