Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pull: run prune silently

  • Loading branch information...
commit 8e2157991ae74ef4f7ecd24f27f29e16922b39f2 1 parent c79ccc3
@jamiew authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pull
View
4 pull
@@ -6,7 +6,7 @@
# safely stashing and re-applying your local changes, if any
#
-branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') || exit $?
+branch=$(git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') || exit $?
default_remote="origin"
remote=$(git config "branch.${branch}.remote" || echo "$default_remote")
remote_branch=$( (git config "branch.${branch}.merge" || echo "refs/heads/$branch") | awk -F '/' '{ print $3 }' )
@@ -34,7 +34,7 @@ else
fi
# Remove old, stale branches
-git remote prune $remote &
+git remote prune $remote & >/dev/null 2>&1
# Bundle em if you got em!
if which bundle >/dev/null && [ -f Gemfile ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.