File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# ===========================================================================
4- # (c) Copyright IBM Corp. 2017, 2021 All Rights Reserved
4+ # (c) Copyright IBM Corp. 2017, 2023 All Rights Reserved
55# ===========================================================================
66#
77# This code is free software; you can redistribute it and/or modify it
@@ -57,10 +57,16 @@ declare -A shas
5757declare -A references
5858
5959git_urls[openj9]=https://github.com/eclipse-openj9/openj9
60- branches[openj9]=master
61-
6260git_urls[omr]=https://github.com/eclipse-openj9/openj9-omr
63- branches[omr]=openj9
61+
62+ currentbranch=$( git rev-parse --abbrev-ref HEAD)
63+ if [[ " $currentbranch " =~ v[0-9]+\. [0-9]+ (\. [0-9]+)? -release ]] ; then
64+ branches[openj9]=$currentbranch
65+ branches[omr]=$currentbranch
66+ else
67+ branches[openj9]=master
68+ branches[omr]=openj9
69+ fi
6470
6571pflag=false
6672
You can’t perform that action at this time.
0 commit comments