fix branch/series handling in list_library_unreleased_changes.sh
The old logic was passing "master" as the series to list-deliverables, which is wrong because the series name for the master branch will always be a release series and not "master". Change-Id: I3e595ac84332e0903941deed23d3a19dd23f2f93 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
34756ddbdf
commit
0246da6a2a
@ -8,7 +8,12 @@ if [[ $# -gt 1 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SERIES=${1:-master}
|
||||
BRANCH=${1:-master}
|
||||
if [ "$BRANCH" = "master" ]; then
|
||||
SERIES=$(ls -1 deliverables | sort | tail -n 1)
|
||||
else
|
||||
SERIES=$(basename $BRANCH)
|
||||
fi
|
||||
|
||||
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASEDIR=$(dirname $TOOLSDIR)
|
||||
@ -29,4 +34,4 @@ fi
|
||||
echo "Finding $SERIES library repositories..."
|
||||
repos=$(list-deliverables --repos --type library --series $SERIES)
|
||||
|
||||
$TOOLSDIR/list_unreleased_changes.sh $SERIES $repos
|
||||
$TOOLSDIR/list_unreleased_changes.sh $BRANCH $repos
|
||||
|
Loading…
x
Reference in New Issue
Block a user