Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5daed4f2c8
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.403 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/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"
Something went wrong with that request. Please try again.