()
| 265 | |
| 266 | |
| 267 | def check_clean_working_tree(): |
| 268 | res = run( |
| 269 | ["git", "status", "--untracked-files=no", "--porcelain"], |
| 270 | check=False, |
| 271 | capture_output=True, |
| 272 | ) |
| 273 | if res.stdout.strip(): |
| 274 | print("Working tree not clean, quitting", file=sys.stderr) |
| 275 | sys.exit(1) |
| 276 | |
| 277 | |
| 278 | def commit(version: str, development: bool): |