Commit f0a4c8d7 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

Fix #16897

* lisp/vc/vc-git.el (vc-git-command): Turn FILE-OR-LIST into nil when
it only contains the repository root.
parent b646ea12
2014-03-08 Dmitry Gutov <dgutov@yandex.ru>
* vc/vc-git.el (vc-git-command): Turn FILE-OR-LIST into nil when
it only contains the repository root. (Bug#16897)
2014-03-07 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-sh-handle-vc-registered): Run first pass
......
......@@ -1210,7 +1210,15 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
The difference to vc-do-command is that this function always invokes
`vc-git-program'."
(apply 'vc-do-command (or buffer "*vc*") okstatus vc-git-program
file-or-list (cons "--no-pager" flags)))
;; http://debbugs.gnu.org/16897
(unless (and (not (cdr-safe file-or-list))
(let ((file (or (car-safe file-or-list)
file-or-list)))
(and file
(eq ?/ (aref file (1- (length file))))
(equal file (vc-git-root file)))))
file-or-list)
(cons "--no-pager" flags)))
(defun vc-git--empty-db-p ()
"Check if the git db is empty (no commit done yet)."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment