Trouble with Git post-receive hook

241 views
Skip to first unread message

Brian Radlick

unread,
Oct 11, 2012, 11:45:12 AM10/11/12
to scmma...@googlegroups.com
I'm seeing the following error when scm manager tries to run my post-receive hook:

19:54:44.891 [qtp350090913-22] ERROR sonia.scm.web.GitReceiveHook - could not execute file hook
java.io.IOException: Cannot run program "C:\scm-server-data\repositories\git\sms4\hooks\post-receive" (in directory "C:\scm-server-data\repositories\git\sms4"): CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessBuilder.start(Unknown Source) ~[na:1.7.0_06]

I've attached my scm-manager.log and post-receive hook script for reference.

Has anyone encountered this before?
scm-manager.log
post-receive.txt

Sebastian Sdorra

unread,
Oct 12, 2012, 1:19:33 PM10/12/12
to scmma...@googlegroups.com
Hi,
It looks like you are trying to use a bash hook on windows, is this
correct? Do you use a cygwin environment? What does this hook? It
looks like the plugin sends a mail for received changesets. Perhaps
you could use the SCM-Manager notify plugin
(http://plugins.scm-manager.org/scm-plugin-backend/page/detail/sonia.scm.plugins/scm-notify-plugin.html).

Sebastian

2012/10/11 Brian Radlick <brad...@gmail.com>:

Brian Radlick

unread,
Oct 12, 2012, 4:54:04 PM10/12/12
to scmma...@googlegroups.com
Hi,

Thanks for the quick reply. I've tried the notify plugin but when I try and enter an email address from the notification tab for the Git repository the "Loading..." screen never goes away. If I navigate to another repository and come back to the notification tab the loading screen is gone but the email address was not persisted.

I was however able to wrap the bash script in a batch file and get everything working.

Thanks for the nice tool,

Brian

Sebastian Sdorra

unread,
Oct 13, 2012, 6:11:11 AM10/13/12
to scmma...@googlegroups.com
Hi,
The freezing notify tab is a known bug. This bug only occurs with IE
(https://bitbucket.org/sdorra/scm-manager/issue/236/notification-tab-freezing).
The bug will be fixed with version 1.21 of SCM-Manager.

Sebastian

2012/10/12 Brian Radlick <brad...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages