summaryrefslogtreecommitdiff
path: root/Command/AddUrl.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-11-21 11:30:53 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-11-21 11:30:53 -0400
commitfed5a751e0ebc95f2acd66f372883bd096d0dd07 (patch)
treeed3660ef48d04637c9015a552155863b5cb575df /Command/AddUrl.hs
parentad26b39c9873db721a91c8aa50d1d1bff2057dde (diff)
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.
Diffstat (limited to 'Command/AddUrl.hs')
-rw-r--r--Command/AddUrl.hs2
1 files changed, 1 insertions, 1 deletions
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