Merge pull request #431 from Luxuride/fix/tools-patch-stamp

fix(tools): fail clearly when a deps checkout has no stamp
This commit is contained in:
goldfishdev
2026-12-03 22:23:50 -06:00
committed by GitHub

View File

@ -10,6 +10,10 @@ git -C "$dir" diff --ignore-submodules=dirty HEAD > "$patch"
rm -f "$root/patches/$name".*.patch
git -C "$dir" submodule -q foreach --recursive \
'git add -u; git diff --quiet --ignore-submodules=dirty HEAD || git diff --ignore-submodules=dirty HEAD > "'"$root/patches/$name"'.${displaypath##*/}.patch"'
if [ ! -f "$dir/.git/um-stamp" ]; then
echo "no stamp for deps/$name: run ./setup.sh $name first" >&2
exit 1
fi
patched "$dir" > "$dir/.git/um-patch"
stamp=$(cat "$dir/.git/um-stamp")
echo "${stamp%% *} $(cat "$root/patches/$name".patch "$root/patches/$name".*.patch 2>/dev/null | sha256sum)" > "$dir/.git/um-stamp"