From 81cccd1ab958fffea3742d72c27cffffc3879c18 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 29 Jul 2026 22:05:48 +0200 Subject: [PATCH] Update `ignoreCommand` in `vercel.json` to handle missing previous SHA and improve fetch logic --- web/vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/vercel.json b/web/vercel.json index 19630ece..34f03ab2 100644 --- a/web/vercel.json +++ b/web/vercel.json @@ -9,5 +9,5 @@ "headers": [{"key": "Cache-Control", "value": "no-cache"}] } ], - "ignoreCommand": "git fetch --unshallow 2>/dev/null && echo $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA && git diff $VERCEL_GIT_PREVIOUS_SHA $VERCEL_GIT_COMMIT_SHA --quiet -- ./ ../common/" + "ignoreCommand": "git fetch origin --unshallow || git fetch origin --deepen=200 || true; echo \"prev=$VERCEL_GIT_PREVIOUS_SHA cur=$VERCEL_GIT_COMMIT_SHA\"; if [ -z \"$VERCEL_GIT_PREVIOUS_SHA\" ] || ! git cat-file -e \"$VERCEL_GIT_PREVIOUS_SHA^{commit}\" 2>/dev/null; then echo 'no usable previous sha - building'; exit 1; fi; git diff --quiet \"$VERCEL_GIT_PREVIOUS_SHA\" \"$VERCEL_GIT_COMMIT_SHA\" -- ./ ../common/" }