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:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user