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

Block the creation of empty commits #470

Merged
merged 1 commit into from
Dec 20, 2022
Merged

Block the creation of empty commits #470

merged 1 commit into from
Dec 20, 2022

Commits on Dec 20, 2022

  1. Block the creation of empty commits

    In specific cases, the update mechanism may lead to no files being
    changed. The changes short-circuit the process to exit early when
    0 files have been modified.
    
    go-git has been changed to return an error when an empty commit
    is detected, which is used as a last resort.
    
    When the push branch is different than the clone branch, the controller
    will now download all branch references from the Git server, in order
    to enable a single fetch operation.
    
    Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
    Paulo Gomes committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    a980b89 View commit details
    Browse the repository at this point in the history