]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build_tools/make_version: Update version parsing for Git migration 77/77/1
authorMatt Jordan <mjordan@digium.com>
Mon, 13 Apr 2015 14:54:18 +0000 (09:54 -0500)
committerMatt Jordan <mjordan@digium.com>
Mon, 13 Apr 2015 15:24:07 +0000 (10:24 -0500)
commit0f627c20157859c9147c850bea665b6cd5a5b523
tree383fae677dd7e821fe7433de68b2d90415ffb07b
parent6b9e0a9db20a41030a704145603ce4bdd6cc1007
build_tools/make_version: Update version parsing for Git migration

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
build_tools/make_version