Description
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 🕹
cd $(mktemp -d)
git clone --ref-format=reftable --mirror https://github.com/GitoxideLabs/gitoxide.git
ein tool organize -t $(mktemp -d) -f $(realpath .)
reports nothing