Hello,
I'm trying to get my post-merge hook to run but I can't get it to work.
Here is my test hook : /salt/.git/hooks/post-merge
#!/bin/sh
echo "pafafds"
touch /tmp/githook.txt
It is executable and I'm doing my git pull with my root account :
# ls -l /salt/.git/hooks/post-merge
-rwxr-xr-x 1 root root 289 Aug 15 09:02 /salt/.git/hooks/post-merge
#cd /salt/
#git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
>From /srv/git/salt/
33986c4..2ed0fc3 master -> origin/master
First, rewinding head to replay your work on top of it...
Fast-forwarded master to 2ed0fc36cfecf48857bd7ed101e0c3690d35dd22.
#ls /tmp/githook.txt
ls: cannot access /tmp/githook.txt: No such file or directory
What else could I be missing ?
# git --version
git version 1.7.12.4
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.