Compare

1af4c26d6972ebf85633e56e67e28868b43f22be..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

Browse files
3 files changed, +35 −39
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/checkout.c
@@ -1340,34 +1340,6 @@ enum checkout_command {
1340 1340 CHECKOUT_RESTORE = 3,
1341 1341 };
1342 1342
1343 - static void advise_disambiguating_remotes(enum checkout_command which_command)
1344 - {
1345 - const char *cmdname;
1346 -
1347 - switch (which_command) {
1348 - case CHECKOUT_CHECKOUT:
1349 - cmdname = "checkout";
1350 - break;
1351 - case CHECKOUT_SWITCH:
1352 - cmdname = "switch";
1353 - break;
1354 - default:
1355 - BUG("command <%d> should not reach advise_disambiguating_remotes",
1356 - which_command);
1357 - break;
1358 - }
1359 -
1360 - advise(_("If you meant to check out a remote tracking branch on, e.g. 'origin',\n"
1361 - "you can do so by fully qualifying the name with the --track option:\n"
1362 - "\n"
1363 - " git %s --track origin/<name>\n"
1364 - "\n"
1365 - "If you'd like to always have checkouts of an ambiguous <name> prefer\n"
1366 - "one remote, e.g. the 'origin' remote, consider setting\n"
1367 - "checkout.defaultRemote=origin in your config."),
1368 - cmdname);
1369 - }
1370 -
1371 1343 static char *parse_remote_branch(const char *arg,
1372 1344 struct object_id *rev,
1373 1345 int could_be_checkout_paths,
@@ -1383,11 +1355,35 @@ static char *parse_remote_branch(const char *arg,
1383 1355 }
1384 1356
1385 1357 if (!remote && num_matches > 1) {
1386 - if (advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME))
1387 - advise_disambiguating_remotes(which_command);
1388 -
1389 - die(_("'%s' matched multiple (%d) remote tracking branches"),
1390 - arg, num_matches);
1358 + if (advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME)) {
1359 + const char *cmdname;
1360 +
1361 + switch (which_command) {
1362 + case CHECKOUT_CHECKOUT:
1363 + cmdname = "checkout";
1364 + break;
1365 + case CHECKOUT_SWITCH:
1366 + cmdname = "switch";
1367 + break;
1368 + default:
1369 + BUG("command <%d> should not reach parse_remote_branch",
1370 + which_command);
1371 + break;
1372 + }
1373 +
1374 + advise(_("If you meant to check out a remote tracking branch on, e.g. 'origin',\n"
1375 + "you can do so by fully qualifying the name with the --track option:\n"
1376 + "\n"
1377 + " git %s --track origin/<name>\n"
1378 + "\n"
1379 + "If you'd like to always have checkouts of an ambiguous <name> prefer\n"
1380 + "one remote, e.g. the 'origin' remote, consider setting\n"
1381 + "checkout.defaultRemote=origin in your config."),
1382 + cmdname);
1383 + }
1384 +
1385 + die(_("'%s' matched multiple (%d) remote tracking branches"),
1386 + arg, num_matches);
1391 1387 }
1392 1388
1393 1389 return remote;