summaryrefslogtreecommitdiff
path: root/git-shell-commands/delete-repo
blob: 17804c6ef113a53ba93f0b0e66e335f8df1cce03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# * delete-repo
#   Allows users to delete repositories permanently
#   ssh git@host delete-repo repo1 repo2 ...

set -e

for repo in $@; do
    test ! -d "$repo".git && continue

    # lo and behold absolute horror
    rm -rf "$repo".git
done