Skip to content

lfs pre-push implementation #3734

@xppt

Description

@xppt

Why git lfs pre-push is ignoring its fourth stdin parameter (remote revision sha1) while choosing objects to send?

Instead it uses git rev-list --not --remote <remote> which could find too many objects if remote is not registered in git (or not fetched into refs/heads/remote/*)

I'm using git automation without any named remotes, so my git push starts to fail because of missing objects in the lfs cache. Seems like such failures were just fixed in #3634, but this solution still requires processing all objects ever been in repo.

Is it possible to consider remote revision sha1, excluding reachable revisions from it?

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