diff --git a/rootfs/usr/local/bin/clone-commit b/rootfs/usr/local/bin/clone-commit index 4639d76..25d7ad1 100755 --- a/rootfs/usr/local/bin/clone-commit +++ b/rootfs/usr/local/bin/clone-commit @@ -1,7 +1,6 @@ #!/bin/bash set -e -set -x GIT_FETCH_ARGS="" GIT_CHECKOUT_ARGS="" @@ -43,5 +42,3 @@ fi git fetch ${GIT_FETCH_ARGS} git checkout ${GIT_CHECKOUT_ARGS} - -ls -la diff --git a/rootfs/usr/local/bin/clone-pull-request b/rootfs/usr/local/bin/clone-pull-request index 9c26204..a091a17 100755 --- a/rootfs/usr/local/bin/clone-pull-request +++ b/rootfs/usr/local/bin/clone-pull-request @@ -1,5 +1,7 @@ #!/bin/bash +set -e + FLAGS="" if [[ -n "${PLUGIN_DEPTH}" ]]; then FLAGS="--depth=${PLUGIN_DEPTH}" @@ -10,9 +12,6 @@ if [ ! -d .git ]; then git remote add origin "${DRONE_REMOTE_URL}" fi -set -e -set -x - git fetch ${FLAGS} origin "+refs/heads/${DRONE_COMMIT_BRANCH}:" git checkout "${DRONE_COMMIT_BRANCH}" diff --git a/rootfs/usr/local/bin/clone-tag b/rootfs/usr/local/bin/clone-tag index aaaccaf..b12d621 100755 --- a/rootfs/usr/local/bin/clone-tag +++ b/rootfs/usr/local/bin/clone-tag @@ -1,5 +1,7 @@ #!/bin/bash +set -e + FLAGS="" if [[ -n "${PLUGIN_DEPTH}" ]]; then FLAGS="--depth=${PLUGIN_DEPTH}" @@ -10,8 +12,5 @@ if [ ! -d .git ]; then git remote add origin "${DRONE_REMOTE_URL}" fi -set -e -set -x - git fetch ${FLAGS} origin "+refs/tags/${DRONE_TAG}:" git checkout --quiet --force FETCH_HEAD