Skip to content

ein tool organize does not recognize and is unable to organize reftable git repositories #1819

Open
@DianaNites

Description

@DianaNites

Current behavior 😯

I have a directory of git repositories cloned with git clone --mirror and rely on ein tool organize to organize them. Recently I have started using git clone --ref-format=reftable, and unexpectedly found ein tool organize to no recognize them, reporting no errors or warnings.

ein 0.41.0
git version 2.48.1

Expected behavior 🤔

ein tool organize should recognize these as git repositories, and move their entire contents regardless of ref-format or whatever else they are under the --destination-directory, organized by their URL, as is done normally.

Based on the requirements git lays out, for this specific case I believe ein tool organize should safely be able to declare all current extensions as recognized and proceed normally, without needing to handle them specially, as none of them affect determining the clone URL or moving all repository contents, whatever they may be, to the destination.

Git behavior

I have not specifically tried git remote -v with an older version of git, however I have tried that command on the current version with a repository with a config modified to have a fakeabc = true extension, and git does fail due to the unknown extension in this case.

Steps to reproduce 🕹

  1. cd $(mktemp -d)
  2. git clone --ref-format=reftable --mirror https://github.com/GitoxideLabs/gitoxide.git
  3. ein tool organize -t $(mktemp -d) -f $(realpath .) reports nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixedhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions