Compare
997c1daf1dce036cd52ba2a4a3d4060b74dd9d54..00fa85023543f86bb7fe71e6ed75a1ab5fb7dfe8
ci: bump debian-11 job to debian-12
Debian 11 just recently went out of its LTS period, and is unmaintained by the project (there is "Extended LTS", but it is a paid service provided by a third party). The point of the debian-11 job was to cover older releases in the LTS state, per ac112fd4f0 (Add additional CI jobs to avoid accidental breakage, 2024-10-31). Bumping to debian-12 will cover us there for the next 2 years. Signed-off-by: Jeff King <peff@peff.net>
Jeff King <peff@peff.net> · 2026-09-05 13:58 UTC · committed by Junio C Hamano
3 files changed,
+11
−9
modified .github/workflows/main.yml
| @@ -411,9 +411,9 @@ jobs: | |||
| 411 | 411 | # A RHEL 8 compatible distro. Supported until 2029-05-31. | |
| 412 | 412 | - jobname: almalinux-8 | |
| 413 | 413 | image: almalinux:8 | |
| 414 | - | # Supported until 2026-08-31. | |
| 415 | - | - jobname: debian-11 | |
| 416 | - | image: debian:11 | |
| 414 | + | # Supported until 2028-06-30. | |
| 415 | + | - jobname: debian-12 | |
| 416 | + | image: debian:12 | |
| 417 | 417 | env: | |
| 418 | 418 | jobname: ${{matrix.vector.jobname}} | |
| 419 | 419 | CC: ${{matrix.vector.cc}} | |
modified .gitlab-ci.yml
| @@ -71,9 +71,9 @@ test:linux: | |||
| 71 | 71 | # A RHEL 8 compatible distro. Supported until 2029-05-31. | |
| 72 | 72 | - jobname: almalinux-8 | |
| 73 | 73 | image: almalinux:8 | |
| 74 | - | # Supported until 2026-08-31. | |
| 75 | - | - jobname: debian-11 | |
| 76 | - | image: debian:11 | |
| 74 | + | # Supported until 2028-06-30. | |
| 75 | + | - jobname: debian-12 | |
| 76 | + | image: debian:12 | |
| 77 | 77 | artifacts: | |
| 78 | 78 | paths: | |
| 79 | 79 | - t/failed-test-artifacts | |
modified builtin/worktree.c
| @@ -303,9 +303,11 @@ static const char *worktree_basename(const char *path, int *olen) | |||
| 303 | 303 | while (len && is_dir_sep(path[len - 1])) | |
| 304 | 304 | len--; | |
| 305 | 305 | ||
| 306 | - | name = path + len; | |
| 307 | - | while (name > path && !is_dir_sep(name[-1])) | |
| 308 | - | name--; | |
| 306 | + | for (name = path + len - 1; name > path; name--) | |
| 307 | + | if (is_dir_sep(*name)) { | |
| 308 | + | name++; | |
| 309 | + | break; | |
| 310 | + | } | |
| 309 | 311 | ||
| 310 | 312 | *olen = len; | |
| 311 | 313 | return name; | |