mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Clean up _upgrade rmeote after 'doom upgrade'
This commit is contained in:
@ -65,6 +65,8 @@ following shell commands:
|
||||
(doom--sh "git" "clean" "-ffd")))
|
||||
|
||||
(doom--sh "git" "remote" "remove" doom-repo-remote)
|
||||
(unwind-protect
|
||||
(progn
|
||||
(or (car (doom--sh "git" "remote" "add" doom-repo-remote doom-repo-url))
|
||||
(error "Failed to add %s to remotes" doom-repo-remote))
|
||||
(or (car (doom--sh "git" "fetch" "--tags" doom-repo-remote branch))
|
||||
@ -104,4 +106,6 @@ following shell commands:
|
||||
(doom-cli-refresh)
|
||||
(when (doom-packages-update doom-auto-accept)
|
||||
(doom-reload-package-autoloads 'force-p))
|
||||
(print! (success "Done! Restart Emacs for changes to take effect.")))))))))
|
||||
(print! (success "Done! Restart Emacs for changes to take effect.")))))))
|
||||
(ignore-errors
|
||||
(doom--sh "git" "remote" "remove" doom-repo-remote))))))
|
||||
|
Reference in New Issue
Block a user