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.
2 parents 55624f5 + 6091f63 commit ba8e7abCopy full SHA for ba8e7ab
start.sh
100755
100644
@@ -96,12 +96,25 @@ 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
+ chmod -R 774 $CLONE_DIR
103
+ cd $CLONE_DIR
104
+ git remote add origin $REPO
105
+ git config core.sparsecheckout true
106
+ echo "$SOURCE/*" >> .git/info/sparse-checkout
107
+ git pull --depth=1 origin $REVISION
108
+ else
109
+ # Clone a fresh copy
110
echo "cloning $REPO"
111
git_retry git clone $REPO $CLONE_DIR
112
cd $CLONE_DIR
113
114
if [ -n "$REVISION" ]; then
115
git checkout $REVISION
116
117
+
118
+ fi
119
120
0 commit comments