Skip to content
This repository was archived by the owner on Jul 18, 2020. It is now read-only.
This repository was archived by the owner on Jul 18, 2020. It is now read-only.

FileNotFoundException after running git pack-refs #19

@parasyte

Description

@parasyte

git pack-refs --all changes the .git internal structure, placing all refs in .git/packed-refs and deletes the individual files in .git/refs/. This can also be done implicitly by other commands like git gc.

The plugin will then crash as it tries to lookup a non-existing file:

(.trim (slurp (str (io/file git-dir ref-path))))

FWIW, anyone who hits this issue can work around it by unpacking refs with this script: https://github.com/tj/git-extras/blob/7f0f91b4d429a11fdaecd5ad4c03c733470b07a1/bin/git-unpack-refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions