I struggled with this for some time. I used to get the following exception when I tried to write any kind of server hooks on my 64-bit Git for Windows installed on a 64-bit Windows Server OS. I fixed this by reworking the order of the Path variables, as mentioned by VonC. Just note that you have to be careful with the order, since I noticed that using Windows Process Explorer (you can download this) sh.exe sometimes spoils the Anti-Virus installed by my company, so experiment with order
remote: 0 [main] sh 2288 D:\git\installation\Git-2.19.1-64-bit\usr\bin\sh.exe: *** fatal error - add_item ("\??\D:\git\installation\Git-2.19.1-64-bit", "/", ...) fa iled, errno 1 remote: Stack trace: remote: Frame Function Args remote: 000FFFF9BC0 0018005E0DE (0018025366A, 00180230C39, 00600010000, 000FFFF8B40) remote: 000FFFF9BC0 001800468F9 (000FFFFAC12, 000FFFF9BC0, 00000000000, 00000000000) remote: 000FFFF9BC0 00180046932 (000FFFF9BC0, 00000000001, 00600010000, 675C3A445C3F3F5C) remote: 000FFFF9BC0 001800CD2CB (00000000000, 00040000024, 00000000000, 00000000000) remote: 1D4881AD919ABD9 0018011BF95 (001800B463C, 00000000000, 00000000000, 00000000000) remote: 000FFFFCCD0 00180046EF3 (00000000000, 00000000000, 00000000000, 00000000000) remote: 00000000000 00180045A03 (00000000000, 00000000000, 00000000000, 00000000000) remote: 000FFFFFFF0 00180045AB4 (00000000000, 00000000000, 00000000000, 00000000000)
source share