Skip to content

Commit

Permalink
Replace magit--tramp-asserts with new logic if it doesn't exist
Browse files Browse the repository at this point in the history
magit--tramp-asserts was removed in
magit/magit@8394f0d4 and replaced with
magit-git-version-assert.
  • Loading branch information
maxhollmann committed Mar 25, 2022
1 parent 12a7b80 commit e3d6996
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion magit-todos.el
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,11 @@ With prefix, prompt for repository."
;;;###autoload
(defun magit-todos-list-internal (directory)
"Open buffer showing to-do list of repository at DIRECTORY."
(magit--tramp-asserts directory)
(if (fboundp 'magit--tramp-asserts)
(magit--tramp-asserts directory)
(when (file-remote-p directory)
(magit-git-version-assert)))

(let ((default-directory directory))
(magit-setup-buffer #'magit-todos-list-mode)))

Expand Down

0 comments on commit e3d6996

Please sign in to comment.