fix magit update
This commit is contained in:
@@ -190,11 +190,11 @@ with a prefix argument."
|
||||
(list nil (transient-args 'magit-fetch-modules))))
|
||||
(if transient
|
||||
(transient-setup 'magit-fetch-modules)
|
||||
(let ((git-version (magit-git-version)))
|
||||
(when (version< git-version "2.8.0")
|
||||
(when-let ((value (transient-arg-value "--jobs=" args)))
|
||||
(message "Dropping --jobs; not supported by Git v%s" git-version)
|
||||
(setq args (remove (format "--jobs=%s" value) args)))))
|
||||
(when (magit-git-version< "2.8.0")
|
||||
(when-let ((value (transient-arg-value "--jobs=" args)))
|
||||
(message "Dropping --jobs; not supported by Git v%s"
|
||||
(magit-git-version))
|
||||
(setq args (remove (format "--jobs=%s" value) args))))
|
||||
(magit-with-toplevel
|
||||
(magit-run-git-async "fetch" "--recurse-submodules" args))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user