doomemacs / doomemacs/core

Failed `doom upgrade` - fatal: couldn't find remote ref refs/heads/master

Open
#7,041 17 comments 22 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*

### Expected behavior

I ran the following command to upgrade Doom.
```bash
doom upgrade && doom purge -g
```

### Current behavior

I was faced with this error:

```bash
> Preparing to upgrade Doom Emacs and its packages...
✓ Doom is already up-to-date!
Doom is up-to-date!
> Synchronizing "default" profile...
> Regenerating envvars file
✓ Generated ~/.config/emacs/.local/env
> Installing packages...
- No packages need to be installed
> (Re)building packages...
- No packages need rebuilding
> Updating recipe repos...
> Updating packages (this may take a while)...
x The package manager threw an error
x Last 16 lines of straight's error log:
[Return code: 0]
$ cd /home/arun-mani-j/.config/emacs/.local/straight/repos/posframe/
$ git log --oneline --no-merges aa88860a16e28a311f81e18f1d9ed2e7d9e33991 \^aa88860a16e28a311f81e18f1d9ed2e7d9e33991
[Return code: 0]
$ cd /home/arun-mani-j/.config/emacs/.local/straight/repos/transient/
$ git rev-parse HEAD
239be53b01e003c5206087d850d9672a42dc4b32
[Return code: 0]
$ cd /home/arun-mani-j/.config/emacs/.local/straight/repos/transient/
$ git config --get remote.origin.url
https://github.com/magit/transient.git
[Return code: 0]
$ cd /home/arun-mani-j/.config/emacs/.local/straight/repos/transient/
$ git fetch origin
fatal: couldn't find remote ref refs/heads/master
[Return code: 128]
! Wrote extended straight log to ~/.config/emacs/.local/logs/cli.doom.230116144928.6024.error
! Script was abruptly aborted, leaving Doom in an incomplete state!
- Run 'doom sync' to repair it.
✓ Finished in 36.03684s
```

### Steps to reproduce

1. Run `doom upgrade`.
2. Error occurs.

### System Information

https://paste.debian.net/hidden/f47e2854/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.