| M | bin/ | 4 | +++- |
@@ -1003,7 +1003,9 @@ cmd_land() {
10031003 say "warning: landing without CI on $bad commit(s)"10041004 fi10051005 1006- appr=$(forge_ssh approvals "$repo" "$(git rev-parse "$tip^{tree}")" "$tip" "$(shq "$onto")" </dev/null) || die "land: could not check approvals"1006+ # A forge older than approval rules takes the tree alone.1007+ appr=$(forge_ssh approvals "$repo" "$(git rev-parse "$tip^{tree}")" "$tip" "$(shq "$onto")" </dev/null 2>/dev/null) ||1008+ appr=$(forge_ssh approvals "$repo" "$(git rev-parse "$tip^{tree}")" </dev/null) || die "land: could not check approvals"10071009 who=$(printf '%s\n' "$appr" | sed 1d | grep -v '^|' | tr '\n' ' ' | sed 's/ *$//')10081010 # What the approval rules say (.forge/approvals on the target), a line each.10091011 rules=$(printf '%s\n' "$appr" | sed -n 's/^|//p')