doomemacs/core
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
..
autoload Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
cli upgrade.el: force fetch 2020-12-01 21:19:48 +01:00
templates Update help keybinds in 'doom install' postamble 2020-07-28 20:08:32 -04:00
test core-cli: backport more refactors from rewrite 2020-08-24 23:00:32 -04:00
core-cli.el Mention supported envvars in 'doom help' 2020-10-08 17:07:36 -04:00
core-editor.el Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
core-keybinds.el Reformat map! docstring 2020-11-14 14:02:07 -05:00
core-lib.el Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
core-modules.el Fix wrong-type-arg error on 'doom compile' 2020-10-14 01:38:01 -04:00
core-packages.el package!: add :build, :post-build support 2020-11-02 16:33:06 -05:00
core-projects.el Create different compilation buffers per-project 2020-11-27 22:22:11 -05:00
core-ui.el Run after-setting-font-hook after fontset config 2020-11-19 00:44:16 -05:00
core.el Minor refactors & reformatting 2020-12-01 13:53:46 -05:00
packages.el Bump :core 2020-11-27 22:22:11 -05:00