fix inverted logic
This commit is contained in:
parent
17c5a8dae5
commit
08854afa10
2 changed files with 16 additions and 13 deletions
|
@ -181,11 +181,11 @@ onAddDirect file fs = do
|
|||
v <- liftAnnex $ catKeyFile file
|
||||
case (v, fs) of
|
||||
(Just key, Just filestatus) ->
|
||||
ifM (liftAnnex $ changedFileStatus key filestatus)
|
||||
( do
|
||||
ifM (liftAnnex $ sameFileStatus key filestatus)
|
||||
( noChange
|
||||
, do
|
||||
liftAnnex $ changedDirect key file
|
||||
pendingAddChange file
|
||||
, noChange
|
||||
)
|
||||
_ -> pendingAddChange file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue