Hotfix: check signatures into remote git repo

This commit is contained in:
Jesús 2022-10-06 09:44:52 +08:00
parent 3fc11c943e
commit 294e9d0ec2
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -91,12 +91,14 @@ check_format() {
} }
check_notes() { check_notes() {
if ! git show-ref --quiet --verify -- "refs/notes" >/dev/null 2>&1; then mapfile -d '\0' signatures < <(find .git/refs/notes -type f 2>/dev/null)
git config --add remote.origin.fetch "+refs/notes/*:refs/notes/*" >/dev/null 2>&1 if [[ $(echo ${#signatures[@]}) != 0 ]]; then
git fetch >/dev/null 2>&1 git fetch >/dev/null 2>&1
else else
git fetch >/dev/null 2>&1 git config --add remote.origin.fetch "+refs/notes/*:refs/notes/*" >/dev/null 2>&1
git fetch origin refs/notes/*:refs/notes/* >/dev/null 2>&1
fi fi
unset signatures
} }
#--------- #---------