Project

General

Profile

Update repository programmatically

Added by Davide Ferrari over 15 years ago

Hi

is there a way to update a repository (whatever $VCS I'm using) programmatically - for example from a cronjob - instead of having to wait for someone to go to the "Repository" section of Redmine GUI?
I've seen there are some scripts in default redmine install to automatically create a repo but nothing to update, AFAIK.

Thanks in advance


Replies (1)

RE: Update repository programmatically - Added by Davide Ferrari over 15 years ago

Ok, the solution is already provided by $REDMINE_DIR/script/runner

Invoking it like this

$ ruby script/runner "Repository.fetch_changesets" -e production

does the trick

    (1-1/1)