---
 magit.el |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/magit.el b/magit.el
index 00eb746..692ed5d 100644
--- a/magit.el
+++ b/magit.el
@@ -2571,11 +2571,16 @@ branch."
 
 ;;; Updating, pull, and push
 
-(defun magit-remote-update ()
-  (interactive)
+(defun magit-remote-update (&optional arg)
+  (interactive "P")
   (if (magit-svn-enabled)
       (magit-run-git-async "svn" "fetch")
-    (magit-run-git-async "remote" "update")))
+    (if (not arg)
+       (magit-run-git-async "remote" "update")
+      (let* ((branch (magit-get-current-branch))
+            (remote (or (and branch (magit-get "branch" branch "remote"))
+                        (magit-read-remote "Fetch from" nil))))
+       (magit-run-git-async "fetch" remote)))))
 
 (defun magit-pull ()
   (interactive)
-- 
1.6.3.3

To unsubscribe from this group, send email to magit+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.

Reply via email to