Skip to content
Snippets Groups Projects
  • Matt Jordan's avatar
    3f9aa299
    build_tools/make_version: Update version parsing for Git migration · 3f9aa299
    Matt Jordan authored
    External systems - such as the Asterisk Test Suite - require knowledge of the
    upstream branch. Unfortunately, after moving to Git, the Asterisk version
    currently consists of only a 'GIT" prefix followed by an object blob,
    e.g., GIT-as08d7. This makes it difficult for such systems to know what
    features are available in a particular check out of Asterisk.
    
    This patch fixes this by hardcoding the branch in a variable in the
    make_version script. Since the mainline branches are not changed often -
    typically only once a year - this is a reasonable approach to solving
    the problem, and is more reliable than parsing the output of 'git branch
    -vv'. Branches that track off of an upstream primary branch will then get the
    benefit of knowing which mainline branch they are currently based off
    of.
    
    ASTERISK-24954 #close
    
    Change-Id: I8090d5d548b6d19e917157ed530b914b7eaf9799
    3f9aa299
    History
    build_tools/make_version: Update version parsing for Git migration
    Matt Jordan authored
    External systems - such as the Asterisk Test Suite - require knowledge of the
    upstream branch. Unfortunately, after moving to Git, the Asterisk version
    currently consists of only a 'GIT" prefix followed by an object blob,
    e.g., GIT-as08d7. This makes it difficult for such systems to know what
    features are available in a particular check out of Asterisk.
    
    This patch fixes this by hardcoding the branch in a variable in the
    make_version script. Since the mainline branches are not changed often -
    typically only once a year - this is a reasonable approach to solving
    the problem, and is more reliable than parsing the output of 'git branch
    -vv'. Branches that track off of an upstream primary branch will then get the
    benefit of knowing which mainline branch they are currently based off
    of.
    
    ASTERISK-24954 #close
    
    Change-Id: I8090d5d548b6d19e917157ed530b914b7eaf9799