Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sl init can wipe the entire directory #923

Open
uhthomas opened this issue Jul 19, 2024 · 1 comment
Open

sl init can wipe the entire directory #923

uhthomas opened this issue Jul 19, 2024 · 1 comment

Comments

@uhthomas
Copy link

I just ran sl init and it deleted all the files in the directory :|

@richjames0
Copy link

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 %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants