summaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/change-description2
-rwxr-xr-xgit-shell-commands/create-bare-repo10
2 files changed, 6 insertions, 6 deletions
diff --git a/git-shell-commands/change-description b/git-shell-commands/change-description
index 120b1cd..d29eaa8 100755
--- a/git-shell-commands/change-description
+++ b/git-shell-commands/change-description
@@ -2,7 +2,7 @@
# Allows users to change project description
# $ ssh git@host change-description repo "description"
-set -E
+set -e
repo=$1; shift
diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo
index 14a640b..b0174e2 100755
--- a/git-shell-commands/create-bare-repo
+++ b/git-shell-commands/create-bare-repo
@@ -2,15 +2,15 @@
# Allows users to create repo.git
# $ ssh git@host create-bare-repo repo1 repo2 ...
-set -E
+set -e
for i in $@; do
# Cleanup names
- i="`echo "$i" | sed "s/[^a-z0-9\.\-\_]//gi"`"
+ repo="`echo "$i" | sed "s/[^a-z0-9\.\-\_]//gi"`"
- if [ -z "$i" ]; then continue; fi
+ if [ -z "$repo" ]; then continue; fi
- mkdir "$i".git
- pushd "$i".git
+ mkdir "$repo".git
+ pushd "$repo".git
git init --bare
done