mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
updating formating for git info
This commit is contained in:
@@ -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 #-}
|
||||||
|
|||||||
Reference in New Issue
Block a user