Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't exit app when GetRepoPaths call fails during startup (#3779)
- **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.
- Loading branch information