|
|
@ -12,7 +12,7 @@ if [[ ! -e .git ]] ||
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
branch=`git symbolic-ref --short -q HEAD`
|
|
|
|
branch=`git symbolic-ref -q HEAD | sed "s|^refs/heads/||"`
|
|
|
|
if [[ -z "$branch" ]] ||
|
|
|
|
if [[ -z "$branch" ]] ||
|
|
|
|
[[ -z "`git rev-parse --symbolic-full-name --remotes=\"*/$branch\"`" ]]; then
|
|
|
|
[[ -z "`git rev-parse --symbolic-full-name --remotes=\"*/$branch\"`" ]]; then
|
|
|
|
echo "There is not active upstream branch. Exiting..."
|
|
|
|
echo "There is not active upstream branch. Exiting..."
|
|
|
|