kahseng/redmine_gitolite_hook — Issue #5: post-receive hook running, but not populating
Author: lgwapnitsky
Created: 2011-11-17 21:03:58+00:00
State: open

I've followed the steps to the letter (I believe) and am not seeing any of my changes in Redmine.

Here is my post-receive:

#!/bin/sh
#
# The "post-receive" script is run after receive-pack has accepted a pack
# and the repository has been updated. It is passed arguments in through
# stdin in the form
#
# For example:
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master

REDMINE_SERVER=http://10.102.2.165/redmine
HOOK_URL=gitolite_hook
FETCH_URL=sys/fetch_changesets
KEY=DwNuME7axqPFbEy6Fg6T
LOG=/var/log/gitolite_post-receive.log

# Read from stdin
while read old new refname; do
echo "Post-receive hook for this repo: [$GL_REPO] $old $new $refname"
# Hit the Redmine Gitolite hook for this repo
curl -d "oldrev=$old&newrev=$new&refname=$refname&user=$GL_USER" "$REDMINE_SERVER/$HOOK_URL?project_id=$GL_REPO"
# Hit the fetch changesets URL
curl "$REDMINE_SERVER/$FETCH_URL?id=$GL_REPO&key=$KEY"
echo "Done."
echo ""

it is executable and owned by my gitolite user

Additionally, I am not getting any log in my defined location. The file listed in the config above has gitolite ownership

Thank you,
Larry