cloning local repo does not work
CarstenPrinz opened this issue · comments
rel: 0.2.20230523-092610+f12b7eee / win10
cloning a local sl repo raises an error
steps to reproduce
a.) create a new repo
sl init --git test
cd test
echo "" >foo
sl add foo
sl commit -m "foo"
cd ..
b.) clone repo
sl clone test test2
c.) error is raised
abort: F:\sl\test2.sl/store\gitdir: The system cannot find the file specified
comparing with test it should be git and not gitdir, but anyway neither git nor gitdir exists in test2
It also does not work if creating the new sub directory manually, e.g.
mkdir test3
cd test3
sl clone ../test
--> abort: F:\sl\test3\test.sl/store\gitdir: The system cannot find the file specified
The error message can improve. But this is otherwise intentional. Sapling is more focused on a client/server setup. It has diverged from a traditional "distributed" source control where the client has everything the server has.
Understood, but if this is a not supported use case sl should terminate at the very beginning with a brief message instead of aborting in the middle of something.