updating formating for git info

This commit is contained in:
Herbert Lange
2025-08-08 17:43:56 +02:00
parent e0ad7594dd
commit 1c4cde7c66

View File

@@ -22,7 +22,7 @@ buildTime = $(do
-- Use Template Haskell to get current Git information -- Use Template Haskell to get current Git information
gitInfo :: String gitInfo :: String
gitInfo = $(do gitInfo = $(do
info <- liftIO $ try $ readProcess "git" ["log", "--format=\"Commit %h Tag %(describe:tags=true)\"", "-1"] "" :: Q (Either SomeException String) info <- liftIO $ try $ readProcess "git" ["log", "--format=commit %h tag %(describe:tags=true)", "-1"] "" :: Q (Either SomeException String)
return $ LitE $ StringL $ either (\_ -> "unavailable") id info ) return $ LitE $ StringL $ either (\_ -> "unavailable") id info )
{-# NOINLINE buildInfo #-} {-# NOINLINE buildInfo #-}