<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9574">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">build_tools/make_version: Get MAINLINE_BRANCH from .gitreview.<br><br>Use .gitreview defaultbranch setting to determine the mainline branch.<br>This allows the script to be used against other directories which might<br>not be on the same defaultbranch.  This can be used by CI scripts to<br>report the testsuite version being used:<br>./build_tools/make_version ${TESTSUITE_DIR}<br><br>Change-Id: Ifdad4a9d8a26138c41bc6b630ecc3e34ea1c2758<br>---<br>M build_tools/make_version<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/74/9574/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/build_tools/make_version b/build_tools/make_version</span><br><span>index edffb8a..ad9fb3f 100755</span><br><span>--- a/build_tools/make_version</span><br><span>+++ b/build_tools/make_version</span><br><span>@@ -3,7 +3,6 @@</span><br><span> AWK=${AWK:-awk}</span><br><span> GIT=${GIT:-git}</span><br><span> GREP=${GREP:-grep}</span><br><span style="color: hsl(0, 100%, 40%);">-MAINLINE_BRANCH=16</span><br><span> </span><br><span> if [ -f ${1}/.version ]; then</span><br><span>     cat ${1}/.version</span><br><span>@@ -101,6 +100,7 @@</span><br><span>     MODIFIED=""</span><br><span>     SVN_REV=`${GIT} log --pretty=full -1 | ${GREP} -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"`</span><br><span>     if [ -z "$SVN_REV" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+        MAINLINE_BRANCH=$(git config -f .gitreview --get gerrit.defaultbranch)</span><br><span>         VERSION=`${GIT} describe --long --always --tags --dirty=M 2> /dev/null`</span><br><span>         if [ $? -ne 0 ]; then</span><br><span>             if [ "`${GIT} ls-files -m | wc -l`" != "0" ]; then</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9574">change 9574</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9574"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ifdad4a9d8a26138c41bc6b630ecc3e34ea1c2758 </div>
<div style="display:none"> Gerrit-Change-Number: 9574 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>