Skip to content

Commit

Permalink
wibbles and minor version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam C. Foltzer committed Mar 17, 2017
1 parent f8c8130 commit 450a7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitrev.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gitrev
version: 1.3.0
version: 1.3.1
synopsis: Compile git revision info into Haskell projects
homepage: https://github.com/acfoltzer/gitrev
license: BSD3
Expand Down
4 changes: 2 additions & 2 deletions src/Development/GitRev.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runGit args def useIdx = do
if gitFound
then do
-- a lot of bookkeeping to record the right dependencies
pwd <- runIO getGitDirectory
pwd <- runIO getDotGit
let hd = pwd </> ".git" </> "HEAD"
index = pwd </> ".git" </> "index"
packedRefs = pwd </> ".git" </> "packed-refs"
Expand Down Expand Up @@ -121,7 +121,7 @@ getDotGit = do
getGitRoot :: IO FilePath
getGitRoot = do
pwd <- getCurrentDirectory
(code, out, err) <-
(code, out, _) <-
readProcessWithExitCode "git" ["rev-parse", "--show-toplevel"] ""
case code of
ExitSuccess -> return $ takeWhile (/= '\n') out
Expand Down

0 comments on commit 450a7ab

Please sign in to comment.