summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-04-02 09:42:14 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-04-02 09:42:14 +0200
commit562fa025f83ee57d7880faae16afbb928783ea9e (patch)
tree9b5b0d1a2690935ece07a45ce6dec47a84b3bc5e
parente6cf75c1f45993aca1bf935597bd74c278dea33d (diff)
downloadorg-mode-562fa025f83ee57d7880faae16afbb928783ea9e.tar.gz
Fix git cleanup of deleted files
-rwxr-xr-xlisp/ChangeLog2
-rw-r--r--lisp/org-attach.el4
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3957d84..a035ae0 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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.
diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index 8533a75..32e938d 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)