Project

General

Profile

Any way to get 'git fetch' to run automatically when fetch_changesets is called?

Added by Phil Miller over 11 years ago

I have a Redmine instance installed on a separate server from the one hosting my project's Git repository. For security reasons, I really don't want to let the repo host ssh to the Redmine host to run a git fetch before calling the web service fetch_changesets interface so that new commits actually appear in Redmine's repository browser. Is there an existing way to get Redmine itself to update its local copy of the Git repository, by calling git fetch? I looked through the documentation, and didn't find anything suitable.


Replies (1)

RE: Any way to get 'git fetch' to run automatically when fetch_changesets is called? - Added by Alex Dergachev about 10 years ago

I'm working on a plugin that does something similar: https://github.com/dergachev/redmine_git_remote

Give it a try and let me know if it works for you.

    (1-1/1)