]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build_tools/make_version: Update version parsing for Git migration 78/78/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:25:27 +0000 (10:25 -0500)
commitf8b30f6dff4dc4afcbcb8b9f581c5ec05cb16f42
treebfab7e9a888db3b524f6c6b8b9a287ee229c1d7e
parent097bfab3f027a025e17db10956c05ab23073f72a
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