branch: elpa/fj
commit a875cb2b2fc03e02ea0ab957d2c97afb3a0e1352
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
FIX #234. create issue from source: fetch repo from git fallback
---
fj.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fj.el b/fj.el
index e932bfcf8c..759ffa4dd8 100644
--- a/fj.el
+++ b/fj.el
@@ -3886,7 +3886,10 @@ The default sort value is \"latest\"."
;; - from an unrelated buffer (without repo being set)
(interactive)
(let* ((owner (fj--repo-owner))
- (repo (fj--repo-name)))
+ (repo (or (fj--repo-name)
+ ;; if we fail (source file) try git:
+ (cadr
+ (fj-repo-+-owner-from-git)))))
(fj-issue-compose)
(setq fj-compose-repo repo
fj-compose-repo-owner owner)