From 1ed5e4d9e3084f5371eb318c500254e1547240e7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 Feb 2012 00:21:35 -0400 Subject: [PATCH] variable name --- Command/ReKey.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/ReKey.hs b/Command/ReKey.hs index 2bd4541c61..6de7e45e32 100644 --- a/Command/ReKey.hs +++ b/Command/ReKey.hs @@ -46,9 +46,9 @@ perform file oldkey newkey = do {- Make a hard link to the old key content, to avoid wasting disk space. -} linkKey :: Key -> Key -> Annex Bool -linkKey oldkey newkey = getViaTmpUnchecked newkey $ \t -> do +linkKey oldkey newkey = getViaTmpUnchecked newkey $ \tmp -> do src <- inRepo $ gitAnnexLocation oldkey - liftIO $ unlessM (doesFileExist t) $ createLink src t + liftIO $ unlessM (doesFileExist tmp) $ createLink src tmp return True cleanup :: FilePath -> Key -> Key -> CommandCleanup