A project clone from my Gogs web server, then I add a file to the Git repository,and push this commit to remote, but the terminal report error about cannot spawn hooks/pre-receive:No such file or directory
.
I checked it and ensure the pre-receive
file is exist in server-side git-repository
, and the cloned had a file is named pre-receive.sample
.
So, I don't know why does this happen and what I can do for resolve it. Please help.
server-side image:
client-side image:
system env: