#! /bin/bash

# usage:	edit <PROJECT> - edit a git repository named PROJECT.git
#		this command will edit some settings for the repo and send an email.

GITDIR="/var/git"

function is_bare() {
	repodir=$1
	if "$(git --git-dir="$repodir" rev-parse --is-bare-repository)" = true
	then
		true
	else
		false
	fi
}

function edit_desc() {
	PROJECT=$1
	echo "modifying description for \"${PROJECT}.git\""
	echo -n "Describe your project in one line: "
	read DESCRIPTION
	cd ${GITDIR}/${PROJECT}.git
