-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from brexhq/terence/v1
add hook
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
echo "Running git-shallow-clone-buildkite-plugin -- pre-checkout" | ||
|
||
DEPTH="${BUILDKITE_PLUGIN_GIT_SHALLOW_CLONE_DEPTH:-1}" | ||
export BUILDKITE_GIT_CLONE_FLAGS="-v --depth ${DEPTH}" | ||
#export BUILDKITE_GIT_FETCH_FLAGS="-v --prune --depth ${DEPTH}" | ||
|
||
#export BUILDKITE_GIT_CLONE_FLAGS="-v --filter=blob:none" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Git shallow clone | ||
description: Sets git-clone and git-fetch flags to perform a shallow clone | ||
author: https://github.com/vgrigoruk | ||
requirements: ['git'] | ||
configuration: | ||
properties: | ||
depth: | ||
type: number | ||
additionalProperties: false |