diff options
Diffstat (limited to 'edit')
| -rw-r--r-- | edit | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,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 |
