We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55624f5 commit 3496e7bCopy full SHA for 3496e7b
start.sh
@@ -96,12 +96,24 @@ if [ -d "$CLONE_DIR" ]; then
96
fi
97
else
98
99
- # Clone a fresh copy
+ if [ -n "$SPARE_CHECKOUT" ]; then
100
+ echo "spare checkout"
101
+ git init $CLONE_DIR
102
+ cd $CLONE_DIR
103
+ git remote add origin $REPO
104
+ git config core.sparsecheckout true
105
+ echo ".codefresh/*" >> .git/info/sparse-checkout
106
+ git pull --depth=1 origin master
107
+ else
108
+ # Clone a fresh copy
109
echo "cloning $REPO"
110
git_retry git clone $REPO $CLONE_DIR
111
cd $CLONE_DIR
112
113
if [ -n "$REVISION" ]; then
114
git checkout $REVISION
115
116
+
117
+ fi
118
119
0 commit comments