caddy-git icon indicating copy to clipboard operation
caddy-git copied to clipboard

Support more hook actions than pull

Open kidwm opened this issue 8 years ago • 3 comments

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.

kidwm avatar Jul 08 '17 13:07 kidwm

👍 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.

pietvanzoen avatar Aug 04 '17 10:08 pietvanzoen

Okay, gonna add this. Hopefully soon.

abiosoft avatar Aug 04 '17 14:08 abiosoft

+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).

bilalakil avatar Feb 05 '19 13:02 bilalakil