caddy-git
caddy-git copied to clipboard
Support more hook actions than pull
Sometimes the commit history would be force updated, is it possible to support to change hook action to this:
git fetch
git reset --hard origin/master
It will make deployment more robust than using pull.
👍 would be handy. I'm using middleman-deploy which force pushes builds to a branch. When caddy-git pulls it runs into conflict issues for some reason.
Okay, gonna add this. Hopefully soon.
+1 for this exact use-case (git reset --hard origin/master). Is there any other way to achieve this? I was surprised that I couldn't use then, because it wasn't executed at all when origin went backwards (not a bug).