#!/bin/sh

BRANCH=`cat .slite/branchname`

REPO="$1"
TASK="$2"
MESSAGE="$3"

if [ "$TASK" = "" ]; then
	TASK="Merging"
fi

if [ "$MESSAGE" = "" ]; then
	MESSAGE="Merging to master"
fi

slite commitrepo "$REPO" "$TASK" "$MESSAGE"

echo "##################################  MERGING TO MASTER ##################################"
cd "$REPO"
git push origin "$BRANCH":master
