diff options
author | neeasade <neeasade@users.noreply.github.com> | 2019-01-20 13:19:07 -0600 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-01-20 20:19:07 +0100 |
commit | 3c16466a14516eb3c177e7eb0553adbe16f39890 (patch) | |
tree | ba1ce5e5a5c15b69f0ec954fd645dc049c84a080 /plugins | |
parent | 6db298c57a5a8901cc280f00ec38fffb527ac86d (diff) | |
download | zsh-3c16466a14516eb3c177e7eb0553adbe16f39890.tar.gz zsh-3c16466a14516eb3c177e7eb0553adbe16f39890.tar.bz2 zsh-3c16466a14516eb3c177e7eb0553adbe16f39890.zip |
git: quote branch name in ggpull and ggpush (#7472)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 45a706173..2251bae2e 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -155,10 +155,10 @@ compdef _git ggu=git-checkout alias ggpur='ggu' compdef _git ggpur=git-checkout -alias ggpull='git pull origin $(git_current_branch)' +alias ggpull='git pull origin "$(git_current_branch)"' compdef _git ggpull=git-checkout -alias ggpush='git push origin $(git_current_branch)' +alias ggpush='git push origin "$(git_current_branch)"' compdef _git ggpush=git-checkout alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)' |