git.iko.soy/typeable/gitrev
on master help sign in
gitrev.cabal+1−1
since splitsnapshots
unifiedsplit
@@ -1,5 +1,5 @@
1name: gitrev
1name: gitrev
2−version: 1.3.0
2+version: 1.3.1
3synopsis: Compile git revision info into Haskell projects
3synopsis: Compile git revision info into Haskell projects
4homepage: https://github.com/acfoltzer/gitrev
4homepage: https://github.com/acfoltzer/gitrev
5license: BSD3
5license: BSD3
src/Development/GitRev.hs+2−2
@@ -66,7 +66,7 @@ runGit args def useIdx = do
66 if gitFound
66 if gitFound
67 then do
67 then do
68 -- a lot of bookkeeping to record the right dependencies
68 -- a lot of bookkeeping to record the right dependencies
69− pwd <- runIO getGitDirectory
69+ pwd <- runIO getDotGit
70 let hd = pwd </> ".git" </> "HEAD"
70 let hd = pwd </> ".git" </> "HEAD"
71 index = pwd </> ".git" </> "index"
71 index = pwd </> ".git" </> "index"
72 packedRefs = pwd </> ".git" </> "packed-refs"
72 packedRefs = pwd </> ".git" </> "packed-refs"
@@ -121,7 +121,7 @@ getDotGit = do
121getGitRoot :: IO FilePath
121getGitRoot :: IO FilePath
122getGitRoot = do
122getGitRoot = do
123 pwd <- getCurrentDirectory
123 pwd <- getCurrentDirectory
124− (code, out, err) <-
124+ (code, out, _) <-
125 readProcessWithExitCode "git" ["rev-parse", "--show-toplevel"] ""
125 readProcessWithExitCode "git" ["rev-parse", "--show-toplevel"] ""
126 case code of
126 case code of
127 ExitSuccess -> return $ takeWhile (/= '\n') out
127 ExitSuccess -> return $ takeWhile (/= '\n') out