diff options
Diffstat (limited to 'roles/jails/22_forge/files/git-shell-commands/describe')
| -rw-r--r-- | roles/jails/22_forge/files/git-shell-commands/describe | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/jails/22_forge/files/git-shell-commands/describe b/roles/jails/22_forge/files/git-shell-commands/describe new file mode 100644 index 0000000..b5b0451 --- /dev/null +++ b/roles/jails/22_forge/files/git-shell-commands/describe @@ -0,0 +1,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" |
