datakit
datakit copied to clipboard
UI for specifying Git repo is very confusing
Problems:
- If you run without arguments, it provides an in-memory-only store. This is only useful for debugging and should not be the default.
- If you point it at a bare Git repository, it quietly adds
/.git
to the path, and thus creates a new empty repository inside the one you wanted to use. We should probably require a--auto-create
option or similar to create a new repository, not change the path the user gives, and warn if they give a path with a.git
subdirectory.
(discovered while testing with @jdjakub)
This requires a change to Irmin: @samoht will this be in the Irmin 1.0 API?
It could be added yes, is there an issue upstream?
I've added https://github.com/mirage/irmin/issues/398 for this.