use -- before filenames when running git add, git rm, etc

This commit is contained in:
Joey Hess 2010-11-10 14:15:21 -04:00
parent f5f472e855
commit fb824f7eb0
6 changed files with 8 additions and 8 deletions

View file

@ -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)