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

Prevent bad commits deploying. (git) #77

Merged
merged 1 commit into from
Nov 21, 2014

Conversation

mconnell
Copy link
Contributor

@mconnell mconnell commented Sep 4, 2014

Hi, thanks for building this handy gem. I don't know if the following change is worth merging, as it only covers 3 system calls and there isn't a test suite so skipped over writing any, but I wanted to raise awareness of an issue when you encounter a fatal error with git.

Using git add -A, if git encounters a fatal error, it will output to stderr, but won't halt the deployment from happening. The result of this is that you end up pushing nothing to your git repository, and blatting your live website in the process. This is just a simple guard to halt the deploy from completing if something goes wrong.

In the event of a fatal error occuring when trying to add content to
git for commit, you end up pushing a blank commit to the git respository.
This is a change which halts the push to a git repository so you don't
accidentally take down your website.
@karlfreeman
Copy link
Owner

This looks like a great change 👍 I'll review it later on. Thanks.

@rubytastic
Copy link

Looks as a cool addition, you short on time could merge this please?
I could contribute but another fork would not contribute to a clean solution either

karlfreeman added a commit that referenced this pull request Nov 21, 2014
Prevent bad commits deploying. (git)
@karlfreeman karlfreeman merged commit 217af0d into karlfreeman:master Nov 21, 2014
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

Successfully merging this pull request may close these issues.

3 participants