Skip to content

Commit

Permalink
git-clone: Pass depth and sslVerify params to args
Browse files Browse the repository at this point in the history
I accidentally missed passing these two params to the flags of git-init.

This PR passes the params as expected.
  • Loading branch information
Scott authored and tekton-robot committed Feb 19, 2020
1 parent ac73d86 commit cdd89a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions git/git-clone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ spec:
script: |
CHECKOUT_DIR="$(workspaces.output.path)/$(inputs.params.subdirectory)"
/ko-app/git-init \
-url $(inputs.params.url) \
-revision $(inputs.params.revision) \
-url "$(inputs.params.url)" \
-revision "$(inputs.params.revision)" \
-path "$CHECKOUT_DIR" \
-submodules $(inputs.params.submodules)
-sslVerify "$(inputs.params.sslVerify)" \
-submodules "$(inputs.params.submodules)" \
-depth "$(inputs.params.depth)"
cd $CHECKOUT_DIR
RESULT_SHA=$(git rev-parse HEAD | tr -d '\n')
RESULT_SHA="$(git rev-parse HEAD | tr -d '\n')"
EXIT_CODE="$?"
if [ "$EXIT_CODE" != 0 ]
then
Expand Down

0 comments on commit cdd89a6

Please sign in to comment.