aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-07-04 12:03:22 +0200
committerTaras Madan <tarasmadan@google.com>2024-07-04 14:13:14 +0000
commit5da12e0a343fb6aecdbba2831bbac00c61e54710 (patch)
treee78ef95d31f6d266d74730a1a091668255b31454 /tools
parentf7d536f16d8c89eaab2757160f059924eeb8cb3d (diff)
tools/syz-bq.sh: assume the dir is already a multirepo
Diffstat (limited to 'tools')
-rwxr-xr-xtools/syz-bq.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-bq.sh b/tools/syz-bq.sh
index b1163c52e..3319f4064 100755
--- a/tools/syz-bq.sh
+++ b/tools/syz-bq.sh
@@ -74,7 +74,8 @@ if [ ! -d $base_dir ]; then
git clone $repo $base_dir
fi
cd $base_dir
-git checkout $branch
+remote=$(git remote -v | grep $repo | head -n1 | awk '{print $1;}')
+git checkout $remote/$branch
cd -
# get the last merged commit at to_date