Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more hook actions than pull #63

Open
kidwm opened this issue Jul 8, 2017 · 3 comments
Open

Support more hook actions than pull #63

kidwm opened this issue Jul 8, 2017 · 3 comments

Comments

@kidwm
Copy link

kidwm commented Jul 8, 2017

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.

@pietvanzoen
Copy link

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

@abiosoft
Copy link
Owner

abiosoft commented Aug 4, 2017

Okay, gonna add this. Hopefully soon.

@bilalakil
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants