handle directory deletion
When a directory is deleted, or moved away, git rm -r it to stage the deletion.
This commit is contained in:
parent
23dbff4b43
commit
7053f5f947
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import CmdLine
|
|||
import Utility.Inotify
|
||||
import Control.Exception as E
|
||||
import qualified Command.Add as Add
|
||||
import qualified Git.Command
|
||||
|
||||
import System.INotify
|
||||
|
||||
|
@ -66,4 +67,4 @@ onDel :: FilePath -> Annex ()
|
|||
onDel file = liftIO $ print $ "del " ++ file
|
||||
|
||||
onDelDir :: FilePath -> Annex ()
|
||||
onDelDir dir = liftIO $ print $ "del dir " ++ dir
|
||||
onDelDir dir = inRepo $ Git.Command.run "rm" [Params "--quiet -r", File dir]
|
||||
|
|
Loading…
Add table
Reference in a new issue