1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Use forward-slashes on windows

We want to be using forward slashes everywhere internally, so if we get a path from windows
we should immediately convert it to use forward slashes.

I'm leaving out the recent repos list because that would require a migration
This commit is contained in:
Jesse Duffield
2023-07-29 13:15:58 +10:00
parent a77d24fdc6
commit b16bb409fc
2 changed files with 21 additions and 14 deletions

View File

@ -28,6 +28,8 @@ func (gui *Gui) updateRecentRepoList() error {
}
known, recentRepos := newRecentReposList(recentRepos, currentRepo)
gui.IsNewRepo = known
// TODO: migrate this file to use forward slashes on all OSes for consistency
// (windows uses backslashes at the moment)
gui.c.GetAppState().RecentRepos = recentRepos
return gui.c.SaveAppState()
}