Commit 4b9386cd authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-fetch-all: Ignore unsupported arguments

If a user adds additional `git fetch' arguments to the popup,
then this command has to make sure it filters those out because
`git remote update' only supports very few arguments.
parent 6226962f
......@@ -514,7 +514,9 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
(defun magit-fetch-all (args)
"Fetch from all remotes."
(interactive (list (magit-fetch-arguments)))
(interactive (list (cl-intersection (magit-fetch-arguments)
(list "--verbose" "--prune")
:test #'equal)))
(run-hooks 'magit-credential-hook)
(magit-run-git-async "remote" "update" args))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment