fix whitespace issues with git-pull-all-branches

This commit is contained in:
Sami Samhuri 2010-04-11 16:53:03 -07:00
parent 3d173a7832
commit 4b8ed5eba6

View file

@ -259,14 +259,14 @@ git-pull-all-branches() {
echo "$pwd is not part of a git repo" echo "$pwd is not part of a git repo"
return return
fi fi
origbranch=$(git branch | fgrep '*' | sed -e 's/\*//') origbranch=$(git branch | fgrep '*' | sed -e 's/\* //')
bs=($@) bs=($@)
[[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\*//')) [[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\* //'))
for b ($bs) { for b ($bs) {
git checkout "$b" git checkout $b
git pull origin "$b" git pull origin $b
} }
git checkout "$origbranch" git checkout $origbranch
} }
function e() { function e() {