I am having trouble with the user-post-receive.bat while setting-up a two-way mirror process. It doesn’t seem to run when a SVN change is pulled.
The contents of user-post-receive.bat:
git push --all --follow-tags origin
Daemon logs:
[2024-07-22 11:05:25.769][daemon][21] Updating latest fetched revision for svn-remote "svn" to r138468
[2024-07-22 11:05:25.791][daemon][21] Restoring refs to reflect SVN state.
[2024-07-22 11:05:25.798][daemon][21] Refs were successfully updated
[2024-07-22 11:05:25.799][daemon][21] Location 'D:\repo.git' fetch completed, fetch took 27820 ms.
[2024-07-22 11:05:25.801][daemon][21] Executing [cmd, /C, "D:/repo.git/hooks/user-post-receive.bat"]; environmentVariables={GIT_DIR=., SVN_LAST_FETCHED_REVISION=138468};workingDirectory=D:\repo.git
[2024-07-22 11:05:25.861][daemon][21] 'D:\repo.git\hooks\user-post-receive.bat' exit code is not 0 (1)
[2024-07-22 11:05:25.861][daemon][21] Triggered user-post-receive hook with no output
[2024-07-22 11:05:25.861][daemon][21] Repository fetch completed, fetch took 27883 ms.
[2024-07-22 11:05:25.861][daemon][21] Async command scheduled, commands running: 1.
If I run the post receive hook in cmd, everything runs fine. Any way to debug this any further?
Thank you.