summaryrefslogtreecommitdiff
path: root/remove-test-branch.sh
blob: 4a8884f14878de972278fd60fd0bab1b8cbf88b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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