mirror of
https://github.com/dokku/dokku.git
synced 2025-12-18 13:07:44 +01:00
This will allow us to short-circuit build processes that would otherwise be triggered due to various commands in Dokku.
19 lines
395 B
Bash
Executable File
19 lines
395 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_AVAILABLE_PATH/git/internal-functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-git-git-has-code() {
|
|
declare desc="checks if there is code at a specific branch"
|
|
declare trigger="git-has-code"
|
|
declare APP="$1" BRANCH_NAME="$2"
|
|
|
|
if fn-git-has-code "$APP" "$BRANCH_NAME"; then
|
|
return 0
|
|
fi
|
|
|
|
return 1
|
|
}
|
|
|
|
trigger-git-git-has-code "$@"
|