branch: elpa/fj
commit a520d0cce88c46b94a5ed5fbf564c35743b98d98
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>

    FIX #210, repo settings from source buffers (fallback to git)
---
 fj-transient.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fj-transient.el b/fj-transient.el
index dbd988c0b3..0c1dfa2fb4 100644
--- a/fj-transient.el
+++ b/fj-transient.el
@@ -199,6 +199,11 @@ Designed to be used in a transient called from the repo."
     (with-current-buffer (car (buffer-list)) ;transient--original-buffer
       (let* ((repo (fj--get-buffer-spec :repo))
              (owner (fj--get-buffer-spec :owner)))
+        ;; if not in a fj.el buffer, assume source buffer and fetch from git:
+        (when (or (not repo) (not owner))
+          (let ((pair (fj-repo-+-owner-from-git)))
+            (setq repo (cadr pair)
+                  owner (car pair))))
         (fj-repo-settings-patch repo owner parsed)))))
 
 (transient-define-suffix fj-update-topics ()

Reply via email to