Handle logs/ directory without .git differently
authorJoachim Breitner <mail@joachim-breitner.de>
Sat, 22 Aug 2015 17:25:19 +0000 (17:25 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Sat, 22 Aug 2015 17:25:19 +0000 (17:25 +0000)
src/Shake.hs

index f186a19..061cb88 100644 (file)
@@ -83,7 +83,7 @@ determineLogSource = do
     haveLogs <- System.Directory.doesDirectoryExist "logs"
     if haveLogs
     then do
-        Stdout s <- cmd "git -C logs rev-parse --is-bare-repository"
+        (Exit _, Stdout s) <- cmd "git -C logs rev-parse --is-bare-repository"
         if s == "true\n"
         then return BareGit
         else return FileSystem