Clean up _upgrade rmeote after 'doom upgrade'
This commit is contained in:
parent
ba07fe575e
commit
2b81233353
1 changed files with 39 additions and 35 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue