diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-08-03 18:37:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-03 18:37:53 +0200 |
commit | a3560eb451fcf375378a316cbc2f4e08e24bf756 (patch) | |
tree | da5e3164495831af816dcf3cf9706209b75d9eef /pkg/commands/git_commands/stash_loader.go | |
parent | 74fe069da93f82c1495913d59ea33751423ce813 (diff) | |
parent | ef4fd70f9c6225dbc9401a5efad4ca0bdad827f8 (diff) |
- **PR Description**
Fixes #3740
As explained in the issue, 7a67096 moved some code around that caused a
call to `GetRepoPaths` to occur before `setupApp`, which usually handles
the scenario where we are not in a git directory. `GetRepoPaths` returns
an error if the path isn't a git repository, which caused the app to
exit before we reached `setupApp`.
When starting up lazygit, we ignore (and log) the error returned by
`GetRepoPaths`, and continue instead of exiting early. This allows us to
reach the step where we follow the user's `notARepository` config entry.
Diffstat (limited to 'pkg/commands/git_commands/stash_loader.go')
0 files changed, 0 insertions, 0 deletions