The following post-receive
hook:
#!/bin/bash
echo "-> Post-receive test"
is not executed when pushing to my remote repository.
The remote is ssh://user@server:2222/home/git/repo.git
(it's a VM) and works, as when I manually checkout it I see the modifications I've made.
Some additional informations ...
$ ls -al /home/git
drwxr-xr-x 7 git git 4096 juin 15 15:40 repo.git
$ ls -al /home/git/repo.git/hooks
-rwxr-xr-x 1 git git 117 juin 15 15:40 post-reveive
Everything seems in place and yet, when I push to the remote, there's no trace of the post-receive
being executed:
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 301 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://user@server:2222/home/git/repo.git
6c385f4..d368bf9 master -> master
Why wouldn't the post-receive
hook be executed?
The hook file is incorrectly named
post-reveive
.