Files
dokku/plugins/git/receive-app
Jose Diaz-Gonzalez 4e0fed18a6 Merge pull request #1421 from basicer/tar-plugin
First pass at tar plugin.
2015-08-31 12:52:35 -04:00

13 lines
276 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_PATH/common/functions"
APP="$1"; REV="$2"
# Don't trigger git build if there is no git repository.
if [ ! -d "$DOKKU_ROOT/$APP/refs" ]; then
cat || true
else
dokku git-build $APP $REV
fi