Is it possible to move/rename a folder in a post-receive (or any other hook) on a bare repository?
#!/bin/sh
mv /path/to/worktree/src /path/to/worktree/public
When I try to push to the repository I get an error:
remote: mv: cannot stat `/path/to/worktree/src': No such file or directory
I am sure that the folder exists in my local branch.