Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5daed4f2c8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.403 kB
#!/bin/sh
#
# Usage: pull
#
# Pulls remote changes using rebase & tries to rebundle,
# safely stashing and re-applying your local changes, if any
#
stash=$(git stash)
git fetch --all && git pull --rebase
if [[ "$stash" =~ "No local changes to save" ]]; then
echo "* No stashed changes, not popping"
else
echo "* Popping stash..."
git stash pop
fi
bundle check || bundle install
echo "Done"
Jump to Line
Something went wrong with that request. Please try again.