Commit 9132ebc
committed
deploy: force-fetch branch tip after clone to defeat stale refs
git clone --single-branch can serve a stale ref advertisement from
GitHub's CDN or HTTP transport cache, causing baudbot update to deploy
commits that are minutes to days behind the true remote HEAD.
After cloning, explicitly fetch --force the branch and hard-reset to
origin/<branch> to guarantee the checkout reflects the latest tip.
Adds a test confirming sequential updates pick up new commits.1 parent db472fe commit 9132ebc
2 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
396 | 402 | | |
397 | 403 | | |
398 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
255 | 286 | | |
256 | 287 | | |
257 | 288 | | |
| |||
364 | 395 | | |
365 | 396 | | |
366 | 397 | | |
| 398 | + | |
367 | 399 | | |
368 | 400 | | |
369 | 401 | | |
| |||
0 commit comments