Skip to content

Commit

Permalink
forge--repo-for-thingatpt: Use forge-buffer-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed May 19, 2024
1 parent 879e862 commit 2795d57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/forge-repo.el
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ an error."
(and-let* ((topic (magit-section-value-if '(issue pullreq))))
(forge-get-repository topic))
(and (not forge-buffer-unassociated-p)
(forge-current-repository :known?))))
(or (forge-buffer-repository)
(forge-get-repository :known?)))))

(defun forge-buffer-repository ()
(and-let* ((id forge-buffer-repository))
Expand Down

0 comments on commit 2795d57

Please sign in to comment.