From 53afac789ee06f54c4233e86b925ee2f69ab9147 Mon Sep 17 00:00:00 2001 From: Matt Reishus Date: Thu, 1 Sep 2011 16:14:33 -0500 Subject: [PATCH] ggpull now updates the current branch's remote tracking branch as well as the current branch --- plugins/git/git.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 4fcf9425d..24af04318 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -50,9 +50,9 @@ function current_branch() { } # these aliases take advantage of the previous function -alias ggpull='git pull origin $(current_branch)' +alias ggpull='git pull origin refs/heads/$(current_branch):refs/remotes/origin/$(current_branch)' compdef ggpull=git alias ggpush='git push origin $(current_branch)' compdef ggpush=git -alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' +alias ggpnp='git pull origin refs/heads/$(current_branch):refs/remotes/origin/$(current_branch) && git push origin $(current_branch)' compdef ggpnp=git