Add git pull support

This commit is contained in:
Will Boyce authored and Jose Diaz-Gonzalez committed 2014-11-23 20:39:57 -05:00
1 parent 53c58ec8b9
commit ad497191df
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -38,6 +38,13 @@ 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")