Welcome to Centmin Mod Community
Register Now

Beta Branch update inc/cpcheck.inc gitenv_askupdate function 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 18, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    6:26 AM
    Nginx 1.13.x
    MariaDB 5.5
    update inc/cpcheck.inc gitenv_askupdate function 123.09beta01

    the centmin.sh on exit git code checker needed an update as centos 6 uses git 1.7.x and centos 7 uses git 1.8.x and git ls-remote --get-url command is only supported in git >1.8, so need an alternate way of determining the local /usr/local/src/centminmod git downloaded code's remote Git repo url

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    6:26 AM
    Nginx 1.13.x
    MariaDB 5.5
    example of the bug prior to this commit fix on centos 6 with git 1.7
    Code (Text):
     checking for YUM updates... please wait...
    no YUM updates available
    usage: git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>] <repository> <refs>...
    -------------------------------------------------------------
    Centmin Mod remote branch has changed
    usage: git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>] <repository> <refs>...
    from
    to https://github.com/centminmod/centminmod.git
    -------------------------------------------------------------
    Do you want to update the Centmin Mod Git repo url ? [y/n]: n
    -------------------------------------------------------------
    Centmin Mod local code is up to date at /usr/local/src/centminmod
    no available updates at this time...
    -------------------------------------------------------------

    example after the committed fix
    Code (Text):
     checking for YUM updates... please wait...
    no YUM updates available
    -------------------------------------------------------------
    Centmin Mod local code is up to date at /usr/local/src/centminmod
    no available updates at this time...
    -------------------------------------------------------------