Closed lobneroO closed 6 months ago
I suspect there's something wrong with this repo's .git/config
file, probably at line 52. Have a look if there's any junk in there.
I'm only guessing here though, couldn't reproduce the problem on my end, at least not with the symptoms you saw.
Yes, that seems to have been the problem. There was a junk entry there:
[ ""]
local = user.email
For me this solved now. If you consider it done, feel free to close, but I'll leave it open if you want to add a fix for it in lazygit. Thank you.
On master it no longer misbehaves in the way you described, because of this commit. However, now you get no indication whatsoever that there's something wrong (unless you have logging enabled and look at the debug log), so that's also not good. I'd say that's a separate issue though, so I'll close this one.
Describe the bug When opening a specific repository with lazygit in powershell, lazygit opens with an error
Then, in Git-Bash the TUI quickly disappears and is replaced by characters running through on the right side. In powershell it slowly builds up the commits section (while the error is displayed) and then there, too, the TUI is replaced by the character run through (in the second video in powershell, this starts at ~1:47):
Git-Bas: https://github.com/jesseduffield/lazygit/assets/17877050/666e1b4b-445e-4b90-93d3-61d7f35f5f9d
Powershell: https://github.com/jesseduffield/lazygit/assets/17877050/36081d5e-4aa7-464a-952f-2d9356c2f084
At this point, I have to kill the console tab, because neither ctrl+c nor q close this.
I'm pretty sure this repository had worked before and it certainly works on a different PC. On this PC it is installed via chocolatey, on the one where it is working right now it was installed via winget. It is up to date on the error one (at least choco upgrade said it was).
I tried a different repository, that one works on both PCs. Neither repo is open source though, sorry.
To Reproduce Steps to reproduce the behavior:
Expected behavior No errors appear, TUI stays open
Screenshots If applicable, add screenshots to help explain your problem.
Version info: Run
lazygit --version
and paste the result hereRun
git --version
and paste the result hereon the second PC on which it does not crash: Run
lazygit --version
and paste the result hereRun
git --version
and paste the result hereAdditional context Windows 11 Windows Terminal Powershell + Git-Bash
Debug/Logs
I tried the suggested
lazygit --debug
/--logs
combo. The logs did not change. The output I got was: