From fed5a751e0ebc95f2acd66f372883bd096d0dd07 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 21 Nov 2016 11:30:53 -0400 Subject: addurl: Fix bug in checking annex.largefiles expressions using largerthan, mimetype, and smallerthan; the first two always failed to match, and the latter always matched. --- Command/AddUrl.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command') diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs index e32ceb568..9b6ac28ea 100644 --- a/Command/AddUrl.hs +++ b/Command/AddUrl.hs @@ -341,7 +341,7 @@ cleanup u url file key mtmp = case mtmp of Nothing -> go Just tmp -> do largematcher <- largeFilesMatcher - ifM (checkFileMatcher largematcher file) + ifM (checkFileMatcher largematcher tmp) ( go , do liftIO $ renameFile tmp file -- cgit v1.2.3