Project

General

Profile

Actions

Defect #11796

open

git repository not updated when committing in github

Added by Kris Pypen over 11 years ago. Updated almost 10 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

I followed this tutorial: http://www.redmine.org/projects/redmine/wiki/HowTo_simply_keep_Redmine_in_sync_with_GitHub

The github hook calls the sys/fetch_changesets url but redmine does not fetch the new changes because the "git-fetch" command is never executed. When I add this code at the beginning of the "fetch_changesets" method in "models/repository/git.rb" it updates correctly.

system("cd #{self.url} && git fetch")
Actions

Also available in: Atom PDF