blob: 31fd8d53ec523c7f392ef7de7ee48fca23baf9f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#! /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
|