Fix disabling pushing

Fixes #135
This may be incomplete.
Please let me know If there are any issues with this PR.