1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore: delete leftover branches from previous testing with test script

This commit is contained in:
Zetok Zalbavar 2016-10-06 19:20:30 +01:00
parent e19686d3d4
commit 8f37d4c7ab
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -22,8 +22,8 @@
set -e -o pipefail
is_pr_number() {
# check if supplied var is a number; if not exit
is_pr_number() {
[[ "$@" =~ ^[[:digit:]]+$ ]]
}
@ -92,9 +92,14 @@ after_merge_failure_msg() {
echo ""
}
# force delete merged and fetched branches
rm_obsolete_branch() {
git branch -D {$merge_branch,}$PR 2>/dev/null || true
}
get_sources() {
add_remote
rm_obsolete_branch
git fetch $remote_name && \
git checkout master && \
git rebase $remote_name/master master && \