From 4eca493ab8d86b7d06e8d3b7cd2a11e4ff3ebbf9 Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 29 Oct 2021 13:47:29 +0300 Subject: [PATCH] Fix fuzzer on master --- docker/test/fuzzer/run-fuzzer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/test/fuzzer/run-fuzzer.sh b/docker/test/fuzzer/run-fuzzer.sh index fdf5a1eab40..0c11e0a615d 100755 --- a/docker/test/fuzzer/run-fuzzer.sh +++ b/docker/test/fuzzer/run-fuzzer.sh @@ -36,10 +36,11 @@ function clone git diff --name-only master HEAD | tee ci-changed-files.txt else if [ -v COMMIT_SHA ]; then - git fetch --depth 1 origin "$SHA_TO_TEST" + git fetch --depth 2 origin "$SHA_TO_TEST" git checkout "$SHA_TO_TEST" echo "Checked out nominal SHA $SHA_TO_TEST for master" else + git fetch --depth 2 origin echo "Using default repository head $(git rev-parse HEAD)" fi git diff --name-only HEAD~1 HEAD | tee ci-changed-files.txt