Skip to content

lazy fetch only needed files + pin git repo to commit hash #378

@milahu

Description

@milahu

i need to mount the git repo/tree at a specific commit, for better stability

but, most git servers (including github) have
uploadpack.allowReachableSHA1InWant = false (default value)
so fetch-by-commit requires a nontrivial workaround ...

any plans to support this?

PRs welcome? ; )

related: https://github.com/NixOS/nixpkgs/pull/135545/files

edit: just noticed, on mount, gitfs does a full shallow clone ...
but i need something much more lightweight, which downloads files only on demand.
use case: mount https://github.com/NixOS/nixpkgs = 250 MBytes extracted, of which i only need a few KBytes

related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions