emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/vc-fossil 54df12a 045/111: Fix parameter passing in `vc-fo


From: ELPA Syncer
Subject: [nongnu] elpa/vc-fossil 54df12a 045/111: Fix parameter passing in `vc-fossil-find-revision`.
Date: Wed, 29 Sep 2021 08:59:18 -0400 (EDT)

branch: elpa/vc-fossil
commit 54df12a4a6ee90b51db908217bb491a532bb3fd5
Author: fifr <fifr>
Commit: fifr <fifr>

    Fix parameter passing in `vc-fossil-find-revision`.
    
    The parameter `vc-checkout-switches` can be a list OR a string.
---
 vc/el/vc-fossil.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index d32a724..f39cef7 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -202,10 +202,14 @@ If `files` is nil return the status for all files."
   (if (zerop (length rev))
       (apply #'vc-fossil-command buffer 0 file
              "cat"
-             vc-checkout-switches)
+             (if (listp vc-checkout-switches)
+                 vc-checkout-switches
+               (list vc-checkout-switches)))
     (apply #'vc-fossil-command buffer 0 file
            "cat" "-r" rev
-           vc-checkout-switches)))
+           (if (listp vc-checkout-switches)
+               vc-checkout-switches
+             (list vc-checkout-switches)))))
 
 (defun vc-fossil-checkout (file &optional editable rev)
   (apply #'vc-fossil-command nil 0 file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]