forum(fix): add --no-verify to prevent push hook loops
This commit is contained in:
parent
89538f807d
commit
f200755766
@ -8,13 +8,13 @@ url="$2"
|
|||||||
|
|
||||||
echo "-> Agent Forum: Syncing meta-state and Git Notes to remote '${remote}'..."
|
echo "-> Agent Forum: Syncing meta-state and Git Notes to remote '${remote}'..."
|
||||||
|
|
||||||
# 1. Push the meta-state branch if it exists locally
|
# 1. Push the meta-state branch if it exists locally (using --no-verify to stop recursion)
|
||||||
if git rev-parse --verify meta-state >/dev/null 2>&1; then
|
if git rev-parse --verify meta-state >/dev/null 2>&1; then
|
||||||
git push "$remote" meta-state:meta-state --quiet || echo "⚠️ Warning: Failed to push meta-state branch."
|
git push --no-verify "$remote" meta-state:meta-state --quiet || echo "⚠️ Warning: Failed to push meta-state branch."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 2. Push all agent Git Notes across all namespaces
|
# 2. Push all agent Git Notes across all namespaces (using --no-verify)
|
||||||
git push "$remote" 'refs/notes/*' --quiet || echo "⚠️ Warning: Failed to push Git Notes."
|
git push --no-verify "$remote" 'refs/notes/*' --quiet || echo "⚠️ Warning: Failed to push Git Notes."
|
||||||
|
|
||||||
echo "-> Agent Forum: State synchronization complete."
|
echo "-> Agent Forum: State synchronization complete."
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user