Skip to content

[Backport 2.32-maintenance] libfetchers/git-utils: Be more correct about validating refnames#14259

Merged
internal-nix-ci[bot] merged 1 commit into2.32-maintenancefrom
backport-14253-to-2.32-maintenance
Oct 15, 2025
Merged

[Backport 2.32-maintenance] libfetchers/git-utils: Be more correct about validating refnames#14259
internal-nix-ci[bot] merged 1 commit into2.32-maintenancefrom
backport-14253-to-2.32-maintenance

Conversation

@internal-nix-ci
Copy link

Automatic backport to 2.32-maintenance, triggered by a label in #14253.

Turns out there's a much better API for this that doesn't have the
footguns of the previous method.

isLegalRefName is somewhat of a misnomer, since it's mainly used to
validate user inputs that can be either references, branch names,
psedorefs or tags.

(cherry picked from commit 5d1178b)
@internal-nix-ci internal-nix-ci bot requested a review from edolstra as a code owner October 15, 2025 20:08
@internal-nix-ci internal-nix-ci bot enabled auto-merge October 15, 2025 20:08
@github-actions github-actions bot added with-tests Issues related to testing. PRs with tests have some priority fetching Networking with the outside (non-Nix) world, input locking labels Oct 15, 2025
@internal-nix-ci internal-nix-ci bot merged commit cf6ad22 into 2.32-maintenance Oct 15, 2025
19 checks passed
@internal-nix-ci internal-nix-ci bot deleted the backport-14253-to-2.32-maintenance branch October 15, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant