Files
dokku/plugins/git/receive-app
2015-09-15 02:17:28 -07:00

13 lines
279 B
Bash
Executable File

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