Permalink
Browse files

supply $revision$ at _diff if "Changes from beginning to ..."

  • Loading branch information...
1 parent c6048bb commit 276233fd55f1e8f00ab2befb525b254bf6f9581a @ayamada ayamada committed Sep 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Network/Gitit/Handlers.hs
@@ -460,7 +460,7 @@ showDiff file page params = do
Left e -> liftIO $ throwIO e
Right htmlDiff -> formattedPage defaultPageLayout{
pgPageName = page,
- pgRevision = from',
+ pgRevision = from' `mplus` to,
pgMessages = pMessages params,
pgTabs = DiffTab :
pgTabs defaultPageLayout,

0 comments on commit 276233f

Please sign in to comment.