Learn about Centmin Mod LEMP Stack today
Register Now

Stable Branch fix cmupdate update prompt loop for local master branch checkouts in …

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 22, 2026 at 2:44 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,036
    12,571
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,224
    Local Time:
    5:12 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix cmupdate update prompt loop for local master branch checkouts in 132.00stable

    The centmin.sh menu option 24 exit prompt, gitenv_update and the dmotd login notice compare HEAD with the checked out branch's upstream (@{u}). cmupdate syncs the checked out branch to origin/<branch>, so an old checkout on a local master branch still tracking origin/master was offered the same update on every menu 24 exit, and dmotd reported updates available, even right after cmupdate. Point the checked out branch's upstream at origin/<branch> during the sync.

    Changes:
    - inc/git_sync.inc: _cmm_git_sync_impl() sets branch.<name>.remote to origin and branch.<name>.merge to refs/heads/<branch> when the checked out branch tracks anything else; a detached HEAD is left alone

    Continue reading...


    132.00stable branch