Project

General

Profile

Automatic repository update via github redmine_hook

Added by Tony Marschall about 12 years ago

I am trying to setup automatic git updates from github. After pushing to github repos there is the following log message:

# Log
Started GET "/sys/fetch_changesets?id=test&key=nBRWE7cKUbikNkzJ4XQ3" for x.x.x.x at 2012-09-04 12:48:44 +0200
Processing by SysController#fetch_changesets as */*
  Parameters: {"id"=>"test", "key"=>"nBRWE7cKUbikNkzJ4XQ3"}
  Project Load (0.1ms)  SELECT `projects`.* FROM `projects` WHERE `projects`.`identifier` = 'test' AND (projects.status = 1) AND (projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='repository')) LIMIT 1
  Repository Load (0.1ms)  SELECT `repositories`.* FROM `repositories` WHERE `repositories`.`project_id` = 1
Shelling out: 'git' '--git-dir' '/home/redmine/repos/test.git' '-c' 'core.quotepath=false' '-c' 'log.decorate=no' 'branch' '--no-color' '--verbose' '--no-abbrev'
  Rendered text template (0.0ms)
Completed 200 OK in 33ms (Views: 1.0ms | ActiveRecord: 0.1ms)

It seems like the github redmine_hook is pinging my installation but i can not see updates/activities in redmine.

My Setup

# Github
I have setup github redmine hook with address, project, api_key

# base setup of local repository
cd /home/redmine/repos
git clone --mirror git@github.com:git_user/test.git .
git fetch -q --all

# Administration > Settings > Repositories
                      Fetch commits automatically: unchecked (tried both)
              Enable WS for repository management: checked
                           API key Generate a key: _my_api_key_
Maximum number of revisions displayed on file log: 100

# Project Setup
SCM                                          : git
Main repository                              : checked
Identifier                                   : (empty)   
Path to repository *                         : /home/redmine/repos/test.git
Report last commit for files and directories : checked

www-data:/home/redmine/repos/test.git$ git --git-dir /home/redmine/repos/test.git -c core.quotepath=false -c log.decorate=no branch --no-color --verbose --no-abbrev
* master abc19121a42608f021a219f1a073734e80322a59 Update README.md
www-data:/home/redmine/repos/test.git$ 

Environment:
  Redmine version                          2.0.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.6
  Environment                              production
  Database adapter                         Mysql2

Can somebody help?


Replies (1)

RE: Automatic repository update via github redmine_hook - Added by Tony Marschall about 12 years ago

As i understood i do not need a special plugin https://github.com/koppen/redmine_github_hook to get synchronisation.

Is something wrong in my setup?

    (1-1/1)