tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index] git version dependency

FYI, the following line in wip/ depends on specific git versions:

    if ! git status -u no | grep "Your branch is up-to-date"

It fails on CentOS 6.7, which uses git 1.7.1, because the status subcommand produces different output. ( See below )

Might be good to add a git version test to, or just find a new approach that's not version-dependent, to save people the trouble I just went through to track this down.



Linux sciprog2.ceas bacon ~/Pkgsrc/pkgsrc-2016Q1/wip 420: (pkgsrc): which git

Linux sciprog2.ceas bacon ~/Pkgsrc/pkgsrc-2016Q1/wip 421: (pkgsrc): git status -u no
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Linux sciprog2.ceas bacon ~/Pkgsrc/pkgsrc-2016Q1/wip 422: (pkgsrc): git --version
git version 2.7.3

Linux sciprog2.ceas bacon ~/Pkgsrc/pkgsrc-2016Q1/wip 423: (pkgsrc): /usr/bin/git status -u no
# On branch master
nothing to commit (working directory clean)

Linux sciprog2.ceas bacon ~/Pkgsrc/pkgsrc-2016Q1/wip 424: (pkgsrc): /usr/bin/git --version
git version 1.7.1

Home | Main Index | Thread Index | Old Index