Skip to content

Commit

Permalink
Fix plugin/git ggpull and ggpush backward compatibility
Browse files Browse the repository at this point in the history
Current `ggpush` is `git push origin` instead of `git push origin $(current_branch)`
Same for `ggpull`
  • Loading branch information
ArnaudRinquin authored and Taylor Mitchell committed Aug 17, 2015
1 parent b2fe44a commit 10a28f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/git/git.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ggl() {
git pull origin "${b:=$1}" "${*[2,-1]}"
}
compdef _git ggl=git-checkout
alias ggpull='ggl'
alias ggpull='git pull origin $(current_branch)'
compdef _git ggpull=git-checkout
ggp() {
if [[ "$#" != 0 ]] && [[ "$#" != 1 ]]; then
Expand All @@ -116,7 +116,7 @@ git push origin "${b:=$1}"
fi
}
compdef _git ggp=git-checkout
alias ggpush='ggp'
alias ggpush='git push origin $(current_branch)'
compdef _git ggpush=git-checkout
ggpnp() {
if [[ "$#" == 0 ]]; then
Expand Down

0 comments on commit 10a28f5

Please sign in to comment.