Skip to content

Commit

Permalink
Fixed regression in 'latest' in Git module.
Browse files Browse the repository at this point in the history
Ignore-this: 4d9e2c807cf2275d4b79eed7c6a84cf2

darcs-hash:20120523050613-0f649-07e10d40e42449dc1ce04f1e88b764c5f24ef0f6.gz
  • Loading branch information
jgm committed May 23, 2012
1 parent 326dc68 commit 1743aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/FileStore/Git.hs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ gitGetRevision :: FilePath -> RevisionId -> IO Revision
gitGetRevision repo revid = do
(status, _, output) <- runGitCommand repo "whatchanged" ["-z","--pretty=format:" ++ gitLogFormat, "--max-count=1", revid]
if status == ExitSuccess
then parseLogEntry output
then parseLogEntry $ B.drop 1 output -- drop initial \1
else throwIO NotFound

-- | Get a list of all known files inside and managed by a repository.
Expand Down

0 comments on commit 1743aee

Please sign in to comment.