Skip to content

Commit 898b016

Browse files
committed
try again to fix tag refs in fuzzer
1 parent 8d3699d commit 898b016

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/test/fuzzer/run-fuzzer.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ BASE_REF=${BASE_REF:="master"}
2424
function git_clone_with_retry
2525
{
2626
for _ in 1 2 3 4; do
27-
if git clone --depth 1 https://github.com/Altinity/ClickHouse.git --branch "${BASE_REF}" -- "$1" 2>&1 | ts '%Y-%m-%d %H:%M:%S';then
27+
# Strip refs/tags/ prefix if present, as --branch expects just the tag/branch name
28+
local ref_name="${BASE_REF#refs/tags/}"
29+
30+
if git clone --depth 1 https://github.com/Altinity/ClickHouse.git --branch "${ref_name}" -- "$1" 2>&1 | ts '%Y-%m-%d %H:%M:%S';then
2831
return 0
2932
else
3033
sleep 0.5

0 commit comments

Comments
 (0)