ignore-unmatch when removing a staged file
When a file is added, and then deleted before the add action runs, the delete event was unhappy that the file never did get staged.
This commit is contained in:
parent
cbf16f1967
commit
bd7857d903
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ onAddSymlink file = go =<< Backend.lookupFile file
|
|||
|
||||
onDel :: FilePath -> Annex ()
|
||||
onDel file = inRepo $ Git.Command.run "rm"
|
||||
[Params "--quiet --cached --", File file]
|
||||
[Params "--quiet --cached --ignore-unmatch --", File file]
|
||||
|
||||
{- A directory has been deleted, or moved, so tell git to remove anything
|
||||
- that was inside it from its cache. -}
|
||||
|
|
Loading…
Reference in a new issue