Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] fix vc git

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:46

"Duncan Mak" [off-list ref] writes:
quoted hunk ↗ jump to hunk
--- a/contrib/emacs/vc-git.el
+++ b/contrib/emacs/vc-git.el
@@ -58,7 +58,7 @@
  (with-temp-buffer
    (let* ((dir (file-name-directory file))
           (name (file-relative-name file dir)))
-      (when dir (cd dir))
+      (when (file-exists-p dir) (cd dir))
      (and (ignore-errors (eq 0 (call-process "git" nil '(t nil) nil
"ls-files" "-c" "-z" "--" name)))
           (let ((str (buffer-string)))
             (and (> (length str) (length name))
I wonder what would happen when (file-name-directory file)
returns nil with this change...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help