$ cat post-commit.bat SET BIN=D:\UNIX\cygwin\bin SET DPN_TMP=%TMP%\%~nx0 "%BIN%\cygpath.exe" -au "%~dpn0" > "%DPN_TMP%" SET /P DPN= < "%DPN_TMP%" DEL "%DPN_TMP%" "%BIN%\bash.exe" "%DPN%.sh" %* >> "%~dpn0.log" 2>&1
The above BAT file will run post-commit.sh (because the name of the BAT file is post-commit.bat) and write standard output and standard error to post-commit.log. I do not have time to explain all of the details, but the two links below will help clarify the Windows side of things. http://www.ss64.com/nt/syntax-args.html http://www.ss64.com/nt/set.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/