Skip to content

Commit

Permalink
emir--update-branch: Error if remote branches cannot be listed
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 15, 2024
1 parent 3ef9402 commit 09576af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions emir.el
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,10 @@ dump the Epkg database. If optional SORT is non-nil, then sort the
(unless default
(error "BUG: No default branch for %s" name))
(when (and forced
(not (member forced
(magit-remote-list-branches "origin"))))
(not (member
forced
(or (magit-remote-list-branches "origin")
(error "Could not list remote branches")))))
(setq unset-forced t)))
(cond
((not forced)
Expand Down

0 comments on commit 09576af

Please sign in to comment.