#!/bin/bash## Git wrapper.## Load functionsLIB="`dirname $0`/../functions"source"$LIB"||exit1# Aditional parametersCWD="`pwd`"# Run git commandshift# Set working folderif[!-z"$RELATIVE_PATH"];thenWORK="$KEYDIR/$RELATIVE_PATH"elseWORK="$BASEDIR"fi
mkdir-p"$WORK"&&cd"$WORK"&&git$*cd"$CWD"