remove leading '/' from APP-Name.

This commit is contained in:
Andreas Litt committed 2015-04-23 15:04:42 +02:00
1 parent 3c056527e8
commit 3aa5231f7e
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ case "$1" in
;; ;;
git-*) git-*)
APP="$(echo $2 | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\'\''/'\''/g')" APP="$(echo $2 | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\'\''/'\''/g' | sed 's/^\///g')"
APP_PATH=$DOKKU_ROOT/$APP APP_PATH=$DOKKU_ROOT/$APP
if [[ $1 == "git-receive-pack" && ! -d "$APP_PATH/refs" ]]; then if [[ $1 == "git-receive-pack" && ! -d "$APP_PATH/refs" ]]; then