doomemacs/core/cli
Kirill A. Korinsky be923535fa
upgrade.el: force fetch
`doom-cli-upgrade` calls `git fetch` to fetch remote branch and tags and
check output code of this command to complain when it failed.

It fails when remote server isn't available that is good.

But it also fails when it can't to fast-forward a branch that will be
used to upgrade doom-emacs.

The last case created a loop and the only way to broke this loop is
remote a branch that should be used for upgrade.

Unfortunately user has no idea about branch name and can't do anything,
just enjoy crash with `Failed to fetch from upstream` message.

This commit added `--force` flag to `git fetch` that forces it to
overwrite branch that is used to upgrade that prevent such loop.

It also fixed https://github.com/hlissner/doom-emacs/issues/4346
2020-12-01 21:19:48 +01:00
..
autoloads.el Remove emacs-version check in autoloads file 2020-10-29 02:36:59 -04:00
byte-compile.el Improve byte compilation message 2020-11-28 21:44:46 -08:00
debug.el Simplify doom/info output 2020-10-20 23:21:11 -04:00
doctor.el cli/doctor: fix native json detection 2020-08-12 16:01:33 -04:00
env.el Don't print ignored/whitelisted envvars on doom env 2020-10-08 17:07:36 -04:00
help.el Fix 'doom help' 2020-08-24 23:36:11 -04:00
install.el Add XDG detection to 'doom install' #4040 2020-10-06 14:19:37 -04:00
packages.el Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
sync.el Fix literate tangling on 'doom sync' 2020-08-25 06:01:35 -04:00
test.el Refactor autoload generator bootstrappers 2020-01-01 13:31:40 -05:00
upgrade.el upgrade.el: force fetch 2020-12-01 21:19:48 +01:00