From 4b8ed5eba6aafde6875a7e489b4fbbdfc6ad0676 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 11 Apr 2010 16:53:03 -0700 Subject: [PATCH] fix whitespace issues with git-pull-all-branches --- zsh/zshrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 9d0e583..4777ba1 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -259,14 +259,14 @@ git-pull-all-branches() { echo "$pwd is not part of a git repo" return fi - origbranch=$(git branch | fgrep '*' | sed -e 's/\*//') + origbranch=$(git branch | fgrep '*' | sed -e 's/\* //') bs=($@) - [[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\*//')) + [[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\* //')) for b ($bs) { - git checkout "$b" - git pull origin "$b" + git checkout $b + git pull origin $b } - git checkout "$origbranch" + git checkout $origbranch } function e() {