sapling
sapling copied to clipboard
`sl init` can wipe the entire directory
I just ran sl init and it deleted all the files in the directory :|
I have also run into this, specifically when running init twice. It says it aborts on the second time but it actually rm -rs which is very sad indeed.
(default) hcir@Richards-Mini / % cd ~
(default) hcir@Richards-Mini ~ % mkdir sapling test
(default) hcir@Richards-Mini ~ % echo . > test_file
(default) hcir@Richards-Mini ~ % mv test_file test/
(default) hcir@Richards-Mini ~ % cd test
(default) hcir@Richards-Mini test % ls
test_file
(default) hcir@Richards-Mini test % sl init --git
(default) hcir@Richards-Mini test % ls
test_file
(default) hcir@Richards-Mini test % sl init --git
abort: repository `/Users/hcir/test` already exists
(default) hcir@Richards-Mini test % ls
(default) hcir@Richards-Mini test %
This should be resolved in 16be39b8d35066473a558b63c4813eb561a2b15a.