🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit f74a6a14a03425b91253f18e69ac2305fbc0c1dd
Parent: 1ede5298d8d06bcaff650918a0f8574e5eb029b4
Author: mcol <mcol@posteo.net>
Date: 2021-12-05 00:28:40 +0300
Committer: mcol <mcol@posteo.net>
Committed: 2021-12-05 00:28:40 +0300

Skip the last-commit-exists check when passing -f

src/Repositories.hs Modified

@@ -109,7 +109,7 @@
                 liftIO . D.doesFileExist $
                     toFilePath output FP.</> "commit" FP.</> show commitID <> ".html"
 
-            unless exists $ do
+            when (not exists || envForce env) $ do
                 -- Collect variables available to the ginger templates --
                 commits <- getCommits gitHead
                 tree <- getTree gitHead