Commit 6254480
committed
fix: handle null SHA on first push or force push
GitHub sets `github.event.before` to `0000...0000` on first push to a
new branch or force push. This caused cargo-rail to fail with:
fatal: bad object 0000000000000000000000000000000000000000
Now detects null SHAs and falls back to auto-detection (origin/main,
origin/master, or HEAD~1).1 parent eec017f commit 6254480
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
248 | 257 | | |
249 | 258 | | |
250 | 259 | | |
| |||
0 commit comments