use -- before filenames when running git add, git rm, etc
This commit is contained in:
parent
f5f472e855
commit
fb824f7eb0
6 changed files with 8 additions and 8 deletions
|
@ -40,7 +40,7 @@ cleanup file key = do
|
|||
g <- Annex.gitRepo
|
||||
|
||||
liftIO $ removeFile file
|
||||
liftIO $ Git.run g ["rm", "--quiet", file]
|
||||
liftIO $ Git.run g ["rm", "--quiet", "--", file]
|
||||
-- git rm deletes empty directories; put them back
|
||||
liftIO $ createDirectoryIfMissing True (parentDir file)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue