You have to setup a post-commit script which will call the previous URL.
Simply add a This setup works in the "usual" case, where Redmine's repository is set to a bare Git repository, so no commits can happen directly in there.
I am running Redmine 2.5.2.stable.13339, so your mileage may vary with these instructions...
shows our most recent commits just fine (from yesterday).
Notes from that ticket: - It's a bare repo.- Originally had no non-master branches.
I had originally created ticket #8049 for this; that has a bit more discussion/detail.
key=XXXXXXXXXXXXXXXX&id=sysadmin-repo&" for .226 at 2014-12-19 0000 Processing by Sys Controller#fetch_changesets as HTML Parameters: Rendered text template (0.0ms) Completed 404 Not Found in 3.2ms (Views: 0.6ms | Active Record: 0.4ms) [email protected]:/home/redmine/redmine# bundle exec rake -f $(readlink -f Rakefile) RAILS_ENV=production redmine:fetch_changesets fatal: Not a git repository: 'pypobot' [email protected]:/home/redmine/redmine# I've found the solution to this error: 'pypobot' is a project, which has Repository Module activated, but no repository associated yet. When I disable the Repository Module from the project, this error is not shown anymore. Then I have cloned it in bare mode on my Redmine server:[email protected]:/home/redmine/data/repos/git# git clone --bare https://[email protected]/Judge82/test4Cloning into bare repository 'test4redmine.git'... remote: Total 3 (delta 0), reused 0 (delta 0) Unpacking objects: 100% (3/3), done.
I've updated to version 0.4.2, and this problem still exists.Yes, I mentioned "22d ago" and the other ticket is titled "before 7 days," but that doesn't imply it's the same problem. Web service for repositories must by activated in the Administration menu (Administration - Settings - Repositories - Enable WS for repository management) and the generated API key (referred to "your service key" in the following documentation) will have to be used by the caller in Step 2.Try to enable the Redmine "Report last commit for files and directories" option. By the way, make sure that your permissions are correct and whatnot. remote: Initialized empty Git repository in /home/gitolite/repositories/blah2.git/ To [email protected]:e8b2d7f..948c5b1 master - master Processing Projects Controller#create (for 127.0.0.1 at 2011-09-28 ) [POST] Parameters: Redirected to Cloning gitolite-admin repository Our hook is already installed Our hook is already installed Setting up hooks for project blah2 Completed in 11922ms (DB: 278) | 302 Found [ Processing Projects Controller#settings (for 127.0.0.1 at 2011-09-28 ) [GET] Parameters: Rendering template within layouts/base Rendering projects/settings DEPRECATION WARNING: @repository will no longer be implicitly assigned to repository.Your post-receive hook may not be working correctly (you can also check this in the plugin configuration panel). Total 4 (delta 1), reused 0 (delta 0) remote: remote: remote: Repository does not have "hooks.redmine_gitolite.key" set. (called from _run_rhtml_vendor47plugins47redmine_git_hosting47app47views47projects47settings47_repository46rhtml_locals_object_repository_tab at /home/vk/redmine-1.2/vendor/plugins/redmine_git_hosting/app/views/projects/settings/_repository.rhtml:56) DEPRECATION WARNING: @repository will no longer be implicitly assigned to repository.