Jay Taylor's notes
back to listing indexForce git to run post-recieve hook, even if everything is "up-to-date" - Stack Overflow
[web search]
How do I force BackgroundI use git to automatically deploy a website to a server. I have a bare repo in a protected area of the server and a I got tired of modifying the
The problem, of course, is that the new What I tried
| ||||
add comment | ||||
Add a shell script named `do-post-receive' to the local repository:
Replace your
(Make sure to Push your changes from the local repository to the server, and watch your
| |||||||||||||||
|
In short, no, it doesn't seem to be possible to make that particular hook run when no commits are pushed. Which probably means you are not using the right mechanism to update said hook. | |||
add comment |