Crash when I try to create a new git repository
MysterHawk opened this issue · comments
Describe the bug
I was trying to create a new git repository in a empty folder, I've launched lazygit and at the question create new git repository I've answered yes, this is the error that the terminal has given me:
Not in a git repository. Create a new git repository? (y/n): y
2022/05/12 01:23:32 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues
*errors.errorString Must open lazygit in a git repository
Steps to reproduce the behavior:
- Go to an empty folder
- Launch lazygit
- Answer yes to question Create a new git repository
It should have been created a new git repository
Desktop (please complete the following information):
- OS: Windows 11
- Lazygit Version commit=7be25a105d389a262ef040133a4270f2f745d255, build date=2022-03-17T07:07:02Z, build source=binaryRelease, version=0.34, os=windows, arch=amd64
Add any other context about the problem here.
I can reproduce it on
windows 10, will look into it. It goes to a recent repo after saying
y for some reason.
Great! Keep using that build until it gets merged into
master and subsequently released.