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 c891cc9 commit d19420dCopy full SHA for d19420d
start.sh
@@ -48,12 +48,17 @@ git config --global credential.helper "/bin/sh -c 'echo username=$USERNAME; echo
48
49
if [ -n "$SPARE_CHECKOUT" ]; then
50
echo "spare checkout"
51
- git init $CLONE_DIR
52
- chmod -R 774 $CLONE_DIR
53
- cd $CLONE_DIR
54
- git remote add origin $REPO
55
- git config core.sparsecheckout true
56
- echo "$SOURCE/*" >> .git/info/sparse-checkout
+ if [ -d "$CLONE_DIR" ]; then
+ echo folder exists - no need to init
+ else
+ git init $CLONE_DIR
+ chmod -R 774 $CLONE_DIR
+ cd $CLONE_DIR
57
+ git remote add origin $REPO
58
+ git config core.sparsecheckout true
59
+ echo "$SOURCE/*" >> .git/info/sparse-checkout
60
+ fi
61
+
62
git pull --depth=1 origin $REVISION
63
exit 0
64
fi
0 commit comments