Don't allow release when master differs from origin, avoids bad pending branches
Ximin Luo
4 years ago
24 | 24 | |
25 | 25 | RELBRANCH="pending-$PKGNAME" |
26 | 26 | git fetch origin --prune |
27 | ||
28 | git diff --quiet origin/master || \ | |
29 | abort 1 "You have unpushed changes on the master branch, please push or unwind them before running this script." | |
27 | 30 | |
28 | 31 | if head -n1 "$PKGDIR/debian/changelog" | grep -qv UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then |
29 | 32 | abort 0 "Package already released." |