When you commit, do you get the following error in the console (on the machine, where are you from)?
remote: FIND: Parameter format not correct remote: FIND: Parameter format not correct
If so, the problem is find.exe.
On Windows, there is a find.exe file in the \ windows \ system32 folder, and cygwin has its own find.exe file. Typically, \ windows \ system32 enters the environment variable 'path'.
Gitolite uses 'find' in its scripts, but unfortunately find.exe from windows, not from cywin, is executed.
Now, to fix the problem, go to the environment variables tab and add the cygwin bin directory to system32.
After that, you will not encounter a problem again when the authorized_keys file is cleared upon commit.
I have gitolite running on a Windows Server 2008 machine with mirroring. (I configured this as a subordinate, and master is the centOs machine.) More information, Since you installed sshd as a Windows service, the cygwin path will be provided with less options than the Windows pass.
source share