bugfix: Running copy --to when both local and remote had the key dropped it from local.

This commit is contained in:
Joey Hess 2011-01-07 02:14:22 -04:00
parent 71a8278f9c
commit e43d4730c5
2 changed files with 4 additions and 2 deletions

View file

@ -89,7 +89,7 @@ toPerform move key = do
if ok
then return $ Just $ toCleanup move remote key
else return Nothing -- failed
Right True -> return $ Just $ Command.Drop.cleanup key
Right True -> return $ Just $ toCleanup move remote key
toCleanup :: Bool -> Git.Repo -> Key -> CommandCleanup
toCleanup move remote key = do
remoteHasKey remote key True