doomemacs/lisp/cli
Henrik Lissner c6fc0e5bc0
fix(cli): don't delete repos beyond $DOOMLOCALDIR
Doom makes multiple attempts to re-clone repos if they failed the first
time, however, if a user provides a :local-repo and that location isn't
a git repo, Doom assumes this it is the result of a failed clone, and so
deletes it to "try" again (which will fail). This can result in lost
work.

This prevents this from happening to packages/repos outside of
$DOOMLOCALDIR (all packages under $DOOMLOCALDIR must be git repos).

Fix: #7785
Amend: 3643c4dadd
Amend: 1fa8d3a4b9
2024-04-01 19:43:39 -04:00
..
make refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
ci.el nit: revise comments, reformat config sections 2022-09-16 01:14:21 +02:00
doctor.el docs: revise and fix nerd-icons doctor check 2023-09-16 15:32:54 +02:00
env.el fix(cli): ensure $EMACSDIR/lisp/cli is in $DOOMPATH 2024-02-07 17:24:24 -05:00
info.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
install.el fix(cli): doom install: $DOOMDIR templates (part 2) 2024-03-28 00:23:17 -04:00
make.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
meta.el tweak(cli): use fancier string-dist suggestion alg 2024-02-16 02:06:24 -05:00
packages.el fix(cli): don't delete repos beyond $DOOMLOCALDIR 2024-04-01 19:43:39 -04:00
profiles.el feat(cli): introduce DOOMPROFILELOAD{FILE,PATH} envvars 2022-09-18 00:28:13 +02:00
run.el fix(cli): link $XDG_*_HOME to fake $HOME for doom run 2022-09-18 13:55:47 +02:00
sync.el fix(cli): doom sync: rebuild-all loop 2024-03-29 23:41:12 -04:00
test.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
upgrade.el fix(cli): doom upgrade: ensure upgrade remote is deleted 2024-03-28 09:43:43 -04:00