Skip to content

autoupdate: determine redirects and tke them in #1640

Closed

Description

@RonnyPfannschmidt

while updating a old repo i work with, i noted that it still used the ambv link to black instead of the one in the psf organization
(works thanks to redirect)

i wonder if there is a inexpensive way for pre-commit to auto-follow on autoupdate to use the new url of the hook

Activity

  1. asottile commented on Oct 14, 2020

    @asottile
    Member

    I forget where (might've been discord? might've been an issue?) but we discussed this and found it's not possible

    the git protocol doesn't expose this and writing something github-specific doesn't seem generically useful or maintainable

    that said, I think this is something pre-commit.ci will handle in the auto-updater since it's in its best interest to try and dedupe things for cache performance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions