remove a debug print and fix build

This commit is contained in:
Joey Hess 2023-01-12 13:18:25 -04:00
parent 8da345b1fb
commit 400ce29a94
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -65,7 +65,7 @@ list _autoinit = do
gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> RemoteStateHandle -> Annex (Maybe Remote)
gen r u rc gc rs = do
c <- parsedRemoteConfig remote rc
cst <- remoteCost gc expensiveRemoteCost
cst <- remoteCost gc c expensiveRemoteCost
urlincludeexclude <- mkUrlIncludeExclude c
return $ Just Remote
{ uuid = if u == NoUUID then webUUID else u
@ -222,7 +222,6 @@ mkUrlIncludeExclude = go fallback
l <- forM rcs $ \rc ->
parsedRemoteConfig remote rc
>>= go (pure neverinclude)
liftIO $ print ("fallback", l)
pure $ UrlIncludeExclude
{ checkUrlIncludeExclude = \u ->
not (any (\c -> checkUrlIncludeExclude c u) l)