Skip to content

Commit

Permalink
Merge pull request #660 from pshipton/relbranch
Browse files Browse the repository at this point in the history
Modify get_source.sh to automatically fetch release branches
  • Loading branch information
keithc-ca authored Sep 13, 2023
2 parents f399997 + 8fa6357 commit 74bb203
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions closed/get_j9_source.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# ===========================================================================
# (c) Copyright IBM Corp. 2017, 2021 All Rights Reserved
# (c) Copyright IBM Corp. 2017, 2023 All Rights Reserved
# ===========================================================================
#
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -57,10 +57,16 @@ declare -A shas
declare -A references

git_urls[openj9]=https://github.com/eclipse-openj9/openj9
branches[openj9]=master

git_urls[omr]=https://github.com/eclipse-openj9/openj9-omr
branches[omr]=openj9

currentbranch=$(git rev-parse --abbrev-ref HEAD)
if [[ "$currentbranch" =~ v[0-9]+\.[0-9]+(\.[0-9]+)?-release ]] ; then
branches[openj9]=$currentbranch
branches[omr]=$currentbranch
else
branches[openj9]=master
branches[omr]=openj9
fi

pflag=false

Expand Down

0 comments on commit 74bb203

Please sign in to comment.