Fix git cleanup of deleted files

This commit is contained in:
Carsten Dominik 2010-04-02 09:42:14 +02:00
parent e6cf75c1f4
commit 562fa025f8
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,7 @@
2010-04-02 Carsten Dominik <carsten.dominik@gmail.com>
* org-attach.el (org-attach-commit): Split on newlines.
* org.el (org-export-latex-default-packages-alist): Use list
instead of cons for the entries.

View file

@ -245,12 +245,12 @@ This checks for the existence of a \".git\" directory in that directory."
(with-temp-buffer
(cd dir)
(shell-command "git add .")
(shell-command "git ls-files --deleted -z" t)
(shell-command "git ls-files --deleted" t)
(mapc '(lambda (file)
(unless (string= file "")
(shell-command
(concat "git rm \"" file "\""))))
(split-string (buffer-string) ""))
(split-string (buffer-string) "\n"))
(shell-command "git commit -m 'Synchronized attachments'")))))
(defun org-attach-tag (&optional off)