Skip to content

Commit

Permalink
Sync repo — Darcs: Be warned.
Browse files Browse the repository at this point in the history
  • Loading branch information
strake committed Oct 29, 2020
1 parent 766243c commit 7e60b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/VCS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import Distribution.Version
import qualified Distribution.PackageDescription as PD

import Control.Exception
( catch, throw, try )
( throw, try )
import Control.Monad.Trans
( liftIO )
import qualified Data.Char as Char
Expand Down Expand Up @@ -324,7 +324,7 @@ vcsDarcs =
[ vcsSyncRepo verbosity prog repo localDir (Just primaryLocalDir)
| (repo, localDir) <- secondaryRepos ]

vcsSyncRepo verbosity prog SourceRepositoryPackage{..} localDir peer =
vcsSyncRepo verbosity prog SourceRepositoryPackage{..} localDir _peer =
try (lines <$> darcsWithOutput localDir ["log", "--last", "1"]) >>= \ case
Right (_:_:_:x:_)
| Just tag <- (List.stripPrefix "tagged " . List.dropWhile Char.isSpace) x
Expand Down

0 comments on commit 7e60b5b

Please sign in to comment.