From e3d6996614d7d12f9560e4ff6f0e4dfab95702b8 Mon Sep 17 00:00:00 2001 From: Max Hollmann Date: Fri, 25 Mar 2022 11:18:11 +0100 Subject: [PATCH] Replace magit--tramp-asserts with new logic if it doesn't exist magit--tramp-asserts was removed in https://github.com/magit/magit/commit/8394f0d4 and replaced with magit-git-version-assert. --- magit-todos.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/magit-todos.el b/magit-todos.el index 24b2b29a..ccdfe263 100644 --- a/magit-todos.el +++ b/magit-todos.el @@ -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)))