Startup: Sort the repo-tree-from-filesystem, it's not sorted by default

This commit is contained in:
fr33domlover 2020-05-14 12:33:51 +00:00
parent 2063c7313b
commit 77e576ccb2

View file

@ -40,6 +40,7 @@ import Data.Bifunctor
import Data.Default.Class
import Data.Foldable
import Data.Git.Repository (isRepo)
import Data.List
import Data.List.NonEmpty (nonEmpty)
import Data.Maybe
import Data.Proxy
@ -245,11 +246,11 @@ makeFoundation appSettings = do
shr ++ " / " ++ rp ++ " [" ++ show vcs ++ "]"
repoTreeFromDir = do
dir <- askRepoRootDir
outers <- liftIO $ listDirectory dir
outers <- liftIO $ sort <$> listDirectory dir
repos <- for outers $ \ outer -> do
let path = dir </> outer
checkDir path
inners <- liftIO $ listDirectory path
inners <- liftIO $ sort <$> listDirectory path
inners' <- for inners $ \ inner -> do
checkDir $ path </> inner
vcs <- do