Hotfix: check signatures into remote git repo
This commit is contained in:
parent
3fc11c943e
commit
294e9d0ec2
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
#---------
|
#---------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user