aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-26 05:25:42 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-26 07:14:05 +0100
commit1290402724684a47b5f36f1158b7fbc7b5406a09 (patch)
treeed03fb154ef07be949c33154fa866dc13b24c687 /app
parent6c18592331d000ebc17335b0c66056539de1d74d (diff)
fix: strip `git config` output
Diffstat (limited to 'app')
-rw-r--r--app/Backend.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Backend.hs b/app/Backend.hs
index af6cebd..a3c1ee8 100644
--- a/app/Backend.hs
+++ b/app/Backend.hs
@@ -168,8 +168,8 @@ data Author = Author
getCommitOf :: CommitHash -> IO Commit
getCommitOf commitHash@WorkingTree = do
date <- maybe getCurrentTime (pure . read) =<< lookupEnv "FAKETIME"
- authorName <- sh "git config user.name"
- authorEmail <- sh "git config user.email"
+ authorName <- T.strip <$> sh "git config user.name"
+ authorEmail <- T.strip <$> sh "git config user.email"
pure
Commit'
{ author = Author authorName authorEmail,