sapling icon indicating copy to clipboard operation
sapling copied to clipboard

cloning local repo does not work

Open CarstenPrinz opened this issue 2 years ago • 3 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

CarstenPrinz avatar Jul 06 '23 11:07 CarstenPrinz

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

CarstenPrinz avatar Jul 06 '23 11:07 CarstenPrinz

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.

quark-zju avatar Jul 11 '23 18:07 quark-zju

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.

CarstenPrinz avatar Jul 13 '23 07:07 CarstenPrinz