From 562fa025f83ee57d7880faae16afbb928783ea9e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 2 Apr 2010 09:42:14 +0200 Subject: [PATCH] Fix git cleanup of deleted files --- lisp/ChangeLog | 2 ++ lisp/org-attach.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3957d8477..a035ae016 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2010-04-02 Carsten Dominik + * 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. diff --git a/lisp/org-attach.el b/lisp/org-attach.el index 8533a754c..32e938df4 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -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)