1#!/bin/bash
2
3if [ -n "`git status -uno -s --porcelain`" ]; then
4    echo "You have unstashed changes. Can not update repository..."
5    git status -uno
6    exit 1
7fi
8
9git fetch
10OLD_BRANCH=$(git rev-parse --abbrev-ref HEAD)
11git checkout master 2> /dev/null
12git svn rebase -l
13git checkout $OLD_BRANCH 2> /dev/null
14
15exit 0
16