aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/files/git-shell-commands/describe
blob: b5b0451c66766ed156fb73f86f9432bc0bec46d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if [ -z "$1" ] || [ -z "$2" ]; then
    echo "Usage: describe [REPO_NAME] [DESCRIPTION]"
    exit 1
fi
if [ ! -d "$1.git" ]; then
    echo "Repository $1 does not exist"
    exit 1
fi
echo "$2" > "$1.git/description"
echo "Updated description for $1"