From aa1c7f6fa45855b657514fd0ef4c9f9640166747 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 23 Nov 2014 20:47:15 -0500 Subject: [PATCH] Move git-upload-pack command to git plugin Also use the same APP escaping as used for other git commands. --- dokku | 7 ------- plugins/git/commands | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dokku b/dokku index a217b5d70..50d2cb62d 100755 --- a/dokku +++ b/dokku @@ -38,13 +38,6 @@ case "$1" in echo ;; - git-upload-pack) - APP=${2//"'"/} # strip single quotes from the app name: 'app_name' -> app_name - pluginhook pre-pull $APP - cat | git-upload-pack "$DOKKU_ROOT/$APP" - pluginhook post-pull $APP - ;; - build) APP="$2"; IMAGE="dokku/$APP"; CACHE_DIR="$DOKKU_ROOT/$APP/cache" id=$(cat | docker run -i -a stdin $DOKKU_DISTRO /bin/bash -c "mkdir -p /app && tar -xC /app") diff --git a/plugins/git/commands b/plugins/git/commands index c00f21539..918925b0c 100755 --- a/plugins/git/commands +++ b/plugins/git/commands @@ -34,6 +34,13 @@ case "$1" in done ;; + git-upload-pack) + APP="$(echo $2 | perl -pe 's/(?