aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-11-25 17:24:53 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-11-26 11:31:15 +0000
commitd6526ea3e6ad9081c902859bbb80f9f840377cb4 (patch)
treebb6796c25dd14c0866fb70cbde7cebefeb4ba880 /syz-cluster
parent951f29f3fa85dd9109f4856608a4a18949f67776 (diff)
syz-cluster: gracefully handle abandoned packed-refs.lock
If the previous processing terminated in a non-graceful way, the lock file remains in place and prevents further polls.
Diffstat (limited to 'syz-cluster')
-rw-r--r--syz-cluster/kernel-disk/fetch-kernels-template.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/syz-cluster/kernel-disk/fetch-kernels-template.yaml b/syz-cluster/kernel-disk/fetch-kernels-template.yaml
index 0f49e432f..180c5738d 100644
--- a/syz-cluster/kernel-disk/fetch-kernels-template.yaml
+++ b/syz-cluster/kernel-disk/fetch-kernels-template.yaml
@@ -61,6 +61,10 @@ spec:
- "-c"
- |
cd /repo.git
+ if [ -f "packed-refs.lock" ]; then
+ echo "Found stale 'packed-refs.lock' at start. Removing it."
+ rm -f packed-refs.lock
+ fi
if [ ! -d "refs" ]; then
git init --bare
fi