summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-shell-commands/delete-repo13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-shell-commands/delete-repo b/git-shell-commands/delete-repo
new file mode 100755
index 0000000..8349308
--- /dev/null
+++ b/git-shell-commands/delete-repo
@@ -0,0 +1,13 @@
+#!/bin/sh
+# * delete-repo
+# Allows users to delete repositories permanently
+# ssh git@host delete-repo repo1 repo2 ...
+
+set -e
+
+for i in $@; do
+ if [ -z "$repo" ]; then continue; fi
+
+ # lo and behold absolute horror
+ rm -rf "$repo".git
+done