Skip to content

Commit

Permalink
forge-pull: Offer to fetch repository for first time
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jul 24, 2024
1 parent 1fb4e74 commit 4024d54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lisp/forge-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ Takes the pull-request as only argument and must return a directory."
"Pull forge topics for the current repository if it is already tracked.
If the current repository is still untracked locally, or the current
repository cannot be determined, instead invoke `forge-add-repository'."
:description "forge topics"
:inapt-if-not #'forge--get-repository:tracked?
:description (lambda ()
(if (forge-get-repository :tracked?)
"forge topics"
"new forge repository"))
(declare (interactive-only nil))
(interactive)
(if-let ((repo (forge-get-repository :tracked?)))
Expand Down

0 comments on commit 4024d54

Please sign in to comment.