summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-08 17:27:43 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-11-20 13:19:55 +0000
commit00473aac90380ffb1b58bd35f8c55f00c025802d (patch)
tree550fe20ab79225b7be649a6dd2cf14ed4007ca5d
parent16f7c15a928c46882e6f8443875b064ed4552b84 (diff)
remove-test-branch: Helper to remove branch upstream
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-xremove-test-branch.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/remove-test-branch.sh b/remove-test-branch.sh
new file mode 100755
index 0000000..4a8884f
--- /dev/null
+++ b/remove-test-branch.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+source ./common.sh
+
+LIBCAMERA=$(srcdir libcamera)
+
+if [ "$#" -ge 1 ]; then
+ echo "1: $1 2: $2"
+ ## $1 branch
+ ## $2 remote (Default to 'upstream : libcamera.org/internal')
+ BRANCH="$1"
+ REMOTE="${2:-upstream}"
+
+ ## Delete any given integration branch
+ git -C $LIBCAMERA push $REMOTE :$BRANCH
+else
+ echo "Bye ($#)"
+fi