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

fatal exit if branch is missing. can this be a warn and continue? #124

Open
elliot-tucker opened this issue Dec 2, 2016 · 0 comments
Open

Comments

@elliot-tucker
Copy link

We generate the list of branches to track by reading consul keys and generating the git2consul config using consul-template, the idea being that we can dynamically generate the branch list from our CI/CD. If for any reason the branch is missing, git2consul will exit. Would be good to have the option to have this as a warn and continue and not a fatal.

(repo name: ourrepo, branch name: non-such).

{"name":"git2consul","hostname":"6a69297818d3","pid":1879,"level":50,"msg":"Failed to create repos due to Failed to load repo config due to Error: Error: Command failed: /bin/sh -c git clone -b non-such [email protected]:Ouruser/ourrepo.git non-such\nCloning into 'non-such'...\nfatal: Remote 
branch non-such not found in upstream origin\n Cloning into 'non-such'...\nfatal: Remote branch non-such not found in upstream origin","time":"2016-12-02T15:38:50.342Z","v":0}
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

1 participant