summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-shell-commands/create-bare-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo
index 6c83bc6..1e06580 100755
--- a/git-shell-commands/create-bare-repo
+++ b/git-shell-commands/create-bare-repo
@@ -7,7 +7,7 @@ set -e
for i in $@; do
# Cleanup names
- repo="`echo "$i" | sed "s/[^a-z0-9\._-]//gi"`"
+ repo="`echo "$repo" | sed -e "s,^[/\.]\+,,g" -e "s,[^a-z0-9\./_-],,gi"`"
if [ -z "$repo" ]; then continue; fi