remove leading '/' from APP-Name.

This commit is contained in:
Andreas Litt authored and Michael Hobbs committed 2015-04-25 10:01:01 -07:00
1 parent 31fafe55d3
commit 9fdff11687
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