diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-07-19 17:42:15 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-07-19 17:42:15 +0000 |
commit | 093e4c42479814b0ed6eecc90cdf85a2f02b9bc6 (patch) | |
tree | 7f5eafd7fca1b14a71618299f023ef6b29f57578 /tcwg-release.sh | |
parent | b311dec3a206f03239e7728041e406e573b0d510 (diff) | |
parent | 6efcaeb7fe1e03586836b8492e707b2050bfaf47 (diff) |
Merge "The 'remote branch' should always be a linaro-local/ snapshots or releases branch."
Diffstat (limited to 'tcwg-release.sh')
-rwxr-xr-x | tcwg-release.sh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tcwg-release.sh b/tcwg-release.sh index 29f4582..19aee70 100755 --- a/tcwg-release.sh +++ b/tcwg-release.sh @@ -543,20 +543,9 @@ fi # The local branch can have the SPIN number on the name. local_branch=${SNAPSHOT:+snapshots/}${RELEASE:+releases/}${CANDIDATE:+releases/}linaro-${release}${SPIN:+-$SPIN}${CANDIDATE:+-rc${RC}} -print_info "${bold}Determining remote tracking branch information..." - # Release candidates and releases always push against the future or current -# release branch. -if [[ "${CANDIDATE:+set}" = "set" || "${RELEASE:+set}" = "set" ]]; then - remote_branch="remotes/${REMOTE}/linaro-local/linaro-${release}" -else - # linaro-local branches aren't a place to push snapshots to so filter them - # out. - remote_branch="$(git branch -r --contains ${track} | grep -v "linaro-local" | grep -e "${REMOTE}" -m1)" - - # git prepends two spaces to the front of branch output. - remote_branch="remotes/${remote_branch# }" -fi +# release branch. Snapshots always go into the snapshots namespace. +remote_branch="remotes/${REMOTE}/linaro-local/${SNAPSHOT:+snapshots}${RELEASE:+releases}${CANDIDATE:+releases}/linaro-${release}" # The rest of the uses of ${release} should include the SPIN number so add the # SPIN number if it was specified. |