I’m trying to get my website under version control. I work directly on the server with ExpanDrive, which uses MacFUSE to mount the SFTP connection as a local volume which I can access with the terminal and other local applications.
Anyway, everything goes smoothly until I try to commit, when I receive this message:
fatal: exec .git/hooks/pre-commit failed.
If I try to run the exec command manually, I see this:
-bash: /Volumes/1&1 Internet/website/.git/hooks/pre-commit: Permission denied
-bash: exec: /Volumes/1&1 Internet/website/.git/hooks/pre-commit: cannot execute: Unknown error: 0
I’ve tried using my SFTP client to give everything under the .git directory full (777) permissions, and still no luck. Does anyone know of anything else I could try?
I ended up setting up a local development environment on my laptop, I’m giving up on trying to use git through ExpanDrive. After spending some more time with it it seems like these tools just weren’t meant to work together.