Fix bug that produced spurious nil state.
This commit is contained in:
parent
a131037e97
commit
e14c4354cf
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-11-21 Eric S. Raymond <esr@snark>
|
||||
|
||||
* vc/vc-src.el (vc-src-state): Fix bug that produced spurious nil state.
|
||||
|
||||
2014-11-21 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* vc/vc.el (vc-deduce-fileset): Support invocation from
|
||||
|
|
|
@ -159,6 +159,7 @@ For a description of possible values, see `vc-check-master-templates'."
|
|||
"SRC-specific version of `vc-state'."
|
||||
(let*
|
||||
((status nil)
|
||||
(default-directory (file-name-directory file))
|
||||
(out
|
||||
(with-output-to-string
|
||||
(with-current-buffer
|
||||
|
@ -168,7 +169,7 @@ For a description of possible values, see `vc-check-master-templates'."
|
|||
(condition-case nil
|
||||
(process-file
|
||||
vc-src-program nil t nil
|
||||
"status" "-a" file)
|
||||
"status" "-a" (file-relative-name file))
|
||||
(error nil)))))))
|
||||
(when (eq 0 status)
|
||||
(when (null (string-match "does not exist or is unreadable" out))
|
||||
|
|
Loading…
Add table
Reference in a new issue