variable name
This commit is contained in:
parent
f3c75b601f
commit
1ed5e4d9e3
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ perform file oldkey newkey = do
|
||||||
|
|
||||||
{- Make a hard link to the old key content, to avoid wasting disk space. -}
|
{- Make a hard link to the old key content, to avoid wasting disk space. -}
|
||||||
linkKey :: Key -> Key -> Annex Bool
|
linkKey :: Key -> Key -> Annex Bool
|
||||||
linkKey oldkey newkey = getViaTmpUnchecked newkey $ \t -> do
|
linkKey oldkey newkey = getViaTmpUnchecked newkey $ \tmp -> do
|
||||||
src <- inRepo $ gitAnnexLocation oldkey
|
src <- inRepo $ gitAnnexLocation oldkey
|
||||||
liftIO $ unlessM (doesFileExist t) $ createLink src t
|
liftIO $ unlessM (doesFileExist tmp) $ createLink src tmp
|
||||||
return True
|
return True
|
||||||
|
|
||||||
cleanup :: FilePath -> Key -> Key -> CommandCleanup
|
cleanup :: FilePath -> Key -> Key -> CommandCleanup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue