From 76571cb2dc2644e9eb23758cd8da6d281d573994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Tue, 8 Oct 2013 11:58:22 -0300 Subject: Allow hidden repos --- git-shell-commands/delete-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-shell-commands/delete-repo') diff --git a/git-shell-commands/delete-repo b/git-shell-commands/delete-repo index 075f77a..4ca644e 100755 --- a/git-shell-commands/delete-repo +++ b/git-shell-commands/delete-repo @@ -7,7 +7,7 @@ set -e for repo in $@; do # Remove leading slashes and dots and perform cleanup - repo="`echo "$repo" | sed -e "s,^[/\.]\+,,g" -e "s,[^a-z0-9\./_-],,gi"`" + repo="`echo "$repo" | sed -e "s/\.\.//g" -e "s,^/\+,,g" -e "s,[^a-z0-9\./_-],,gi"`" test ! -d "$repo".git && continue echo "Removing ${repo}.git" -- cgit v1.2.3