Hi, I got the same problem and was able to fix it. I wrote a wrapper script for git [1] in order to trace all calls into a log file. Thereby I found following error, that occurred every time when creating a merge request:
git --git-dir=/var/www/gitorious/repositories/placement24/snoacks-placement24.git push --force /var/www/gitorious/repositories/placement24/placement24.git 047da75384273767fd72112fc9b675c3ccfd3df4:refs/merge-requests/2 remote: /usr/lib/ruby/1.8/open-uri.rb:32:in `initialize': Permission denied - /tmp/pre_receive_guard.log (Errno::EACCES) remote: from /usr/lib/ruby/1.8/open-uri.rb:32:in `open_uri_original_open' remote: from /usr/lib/ruby/1.8/open-uri.rb:32:in `open' remote: from /usr/lib/ruby/1.8/logger.rb:517:in `open_logfile' remote: from /usr/lib/ruby/1.8/logger.rb:486:in `initialize' remote: from /usr/lib/ruby/1.8/logger.rb:262:in `new' remote: from /usr/lib/ruby/1.8/logger.rb:262:in `initialize' remote: from hooks/pre-receive:28:in `new' remote: from hooks/pre-receive:28 To /var/www/gitorious/repositories/placement24/placement24.git ! [remote rejected] 047da75384273767fd72112fc9b675c3ccfd3df4 -> refs/merge-requests/2 (pre-receive hook declined) error: failed to push some refs to '/var/www/gitorious/repositories/placement24/placement24.git' When gitorious is pushing the merge request to the special ref in the target repository, the post-receive hook seems to fail due to insufficient permissions to access the file /tmp/pre_receive_guard.log. For some reasons, that file was owned by root instead of git (the user gitorious runs as). After fixing that, everything worked fine. I hope that was helpful to you and others with this problem. If removing or changing ownership of /tmp/pre_receive_guard.log doesn't help, you can still use my script [1], in order to find the error that occurs in your case. [1] https://github.com/wallunit/command-tracer Cheers Sebastian > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
