1
0
Fork 0

Fix behind commit script

This commit is contained in:
Malte 2023-03-17 15:55:42 +01:00
parent 53d0944a48
commit 9b9ad37224

View file

@ -220,7 +220,7 @@ main = do
mode <- read_mode
behind <-
if mode /= Klausur
then tryCmd (git "--no-optional-locks" "-C" git_dir "log" "--oneline" "origin/main" "^main")
then tryCmd (git "--no-optional-locks" "-C" (git_dir </> "config") "log" "--oneline" "origin/main" "^main")
else pure ""
when' (not $ LBS.null behind) $ withColor yellow [i|Config #{show (length (LBSC.lines behind))} commits behind.|]
, \var -> do