You've already forked git-docker
This commit is contained in:
@ -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}"
|
||||
|
||||
|
Reference in New Issue
Block a user