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

branch doesn't work #75

Closed
electricduck opened this issue Sep 2, 2017 · 1 comment
Closed

branch doesn't work #75

electricduck opened this issue Sep 2, 2017 · 1 comment

Comments

@electricduck
Copy link

electricduck commented Sep 2, 2017

I'm wanting to pull release/live from a repo I have (via a webhook on Gogs). It works fine the first time, however, every request to the webhook after that causes a 400 error (and fails to pull on the server). This does not occur if I use the main branch develop, but occurs on every other branch.

Here is my config:

git {
    repo https://{2FA-token}@git.zyr.io/zyrio/zyrbin
    path /var/lib/web/app/zyrbin
    hook /hooks/zyrbin/update-application {secret}
    interval -1
    branch release/live
    then /var/lib/web/build/zyrbin
}

@electricduck electricduck changed the title 400 error after initial pull branch doesn't work Sep 2, 2017
@ivankolev
Copy link

@electricduck surround the branch name with double quotes. Probably the forward slash trips the parser. I've had similar problem with dot in the name, and I remembered somewhere in the docs a mention of the need to quote. Admittedly, the docs are sparse, but caddy is awesome 🥇

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

No branches or pull requests

2 participants