#!/bin/sh

BRANCH=`cat .slite/branchname`

TASK="$1"
MESSAGE="$2"

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

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

slite commit "$TASK" "$MESSAGE"

echo "##################################  MERGING TO MASTER ##################################"
slite all git push origin "$BRANCH":master
