diff options
Diffstat (limited to 'test/bootstrap')
-rwxr-xr-x | test/bootstrap | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/bootstrap b/test/bootstrap index fe9c0ba..ea781c9 100755 --- a/test/bootstrap +++ b/test/bootstrap @@ -88,3 +88,8 @@ getTagList () { getTagList_multiline=$(git -C "${1}" show-ref --tags | sed -E 's:^.*?refs/tags/::' || true) printf '%s' "${getTagList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' } + +getBranchList () { + getBranchList_multiline=$(git -C "${1}" show-ref --heads | sed -E 's:^.*?refs/heads/::' || true) + printf '%s' "${getBranchList_multiline}" | sort -b | tr '\n' ' ' | sed -E 's:^ | $::g' +} |