You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at a submodule, I was not sure that I got the latest and greatest commit, and I decided to do several pushes and pulls. Since it's a detached branch, two options for both push and pull were shown to me, I was using both as it is easy to forget which is the right one, and after a dozen of pushed and pulls lazygit crashed. I was able to reproduce it in the same repo one more time, with more pushed and pulls, and then I could not reproduce it. Also the submodule has a different path to from it's initial one (but was safely moved with git mv)
Update: I reproduces it the third time! I think you need to do pulls several times.
$ lazygit --logs
Tailing log file C:\Users\ASUS\AppData\Local\lazygit\development.log
Jan 4 17:01:47 |INFO| Heap memory in use: 9.6 MB
Jan 4 17:01:47 |INFO| refreshed merge conflicts in 0s
Jan 4 17:01:47 |DEBU| using cache for key status.showUntrackedFiles
Jan 4 17:01:47 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z --find-renames=50%"
Jan 4 17:01:47 |INFO| git status --untracked-files=all --porcelain -z --find-renames=50% (54.3657ms)
Jan 4 17:01:47 |INFO| refreshed files in 94.8503ms
Jan 4 17:01:47 |INFO| Refresh took 95.4205ms
Jan 4 17:01:47 |INFO| postRefreshUpdate for submodules took 0s
Jan 4 17:01:47 |INFO| postRefreshUpdate for files took 0s
Jan 4 17:01:49 |DEBU| RunCommand command="git fetch --all --no-write-fetch-head"
╭─Enter upstream as '<remote> <branchname>'───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│origin a9950d64f78c11cba4d4ffeb6c0efc0312df1141 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─Suggestions (press <tab> to focus)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│origin main │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────1 of 1─╯
Wrong option for push will show something like this:
error: The destination you provided is not a full refname (i.e.,
starting with "refs/"). We tried to guess what you meant by:
- Looking for a ref that matches 'a9950d64f78c11cba4d4ffeb6c0efc0312df1141' on the remote side.
- Checking if the <src> being pushed ('HEAD')
is a ref in "refs/{heads,tags}/". If so we add a corresponding
refs/{heads,tags}/ prefix on the remote side.
Neither worked, so we gave up. You must fully qualify the ref.
hint: The <src> part of the refspec is a commit object.
hint: Did you mean to create a new branch by pushing to
hint: 'HEAD:refs/heads/a9950d64f78c11cba4d4ffeb6c0efc0312df1141'?
error: failed to push some refs to 'github.com:0dminnimda/neovim_config.git'
Both pulls now show me this (I think this is the result of the crash):
fatal: could not set upstream of HEAD to origin/main when it does not point to any branch.
The text was updated successfully, but these errors were encountered:
I was looking at a submodule, I was not sure that I got the latest and greatest commit, and I decided to do several pushes and pulls. Since it's a detached branch, two options for both push and pull were shown to me, I was using both as it is easy to forget which is the right one, and after a dozen of pushed and pulls lazygit crashed. I was able to reproduce it in the same repo one more time, with more pushed and pulls, and then I could not reproduce it. Also the submodule has a different path to from it's initial one (but was safely moved with
git mv
)Update: I reproduces it the third time! I think you need to do pulls several times.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crashes
Version info
Windows Terminal
Bash from Git for Windows
Screen Pastes
First crash:
Second:
Third:
development.log
options:
Wrong option for push will show something like this:
Both pulls now show me this (I think this is the result of the crash):
The text was updated successfully, but these errors were encountered: