diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2018-03-26 23:43:02 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2018-03-26 23:43:02 +0200 |
| commit | 4b9386cd6f250a09574e69e10a74ffb6a71cbf19 (patch) | |
| tree | a2f51ce0decb2f5990a24d061632f9a0e24d44e2 /lisp | |
| parent | 6226962f6d2a22f070f06700e572df4fee97f79f (diff) | |
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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-remote.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/magit-remote.el b/lisp/magit-remote.el index 6813f70..02b3ea6 100644 --- a/lisp/magit-remote.el +++ b/lisp/magit-remote.el @@ -514,7 +514,9 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"." ;;;###autoload (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)) |
