init
This commit is contained in:
parent
b631bfb4c2
commit
19f55a8831
@ -170,11 +170,15 @@ spec:
|
|||||||
git clone --depth=$(params.depth) $(params.url) "$CLONE_DIR"
|
git clone --depth=$(params.depth) $(params.url) "$CLONE_DIR"
|
||||||
cd "$CLONE_DIR"
|
cd "$CLONE_DIR"
|
||||||
else
|
else
|
||||||
|
echo "1"
|
||||||
cd "$CLONE_DIR"
|
cd "$CLONE_DIR"
|
||||||
|
echo "2"
|
||||||
git init
|
git init
|
||||||
chmod -R a+rwX .git
|
echo "3"
|
||||||
git remote add origin $(params.url)
|
git remote add origin $(params.url)
|
||||||
|
echo "4"
|
||||||
git pull --depth=$(params.depth) origin master --allow-unrelated-histories
|
git pull --depth=$(params.depth) origin master --allow-unrelated-histories
|
||||||
|
cd "$CLONE_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$(params.refspec)" ]; then
|
if [ -n "$(params.refspec)" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user