This commit is contained in:
병준 박 2025-04-15 09:53:04 +00:00
parent b631bfb4c2
commit 19f55a8831

View File

@ -170,11 +170,15 @@ spec:
git clone --depth=$(params.depth) $(params.url) "$CLONE_DIR"
cd "$CLONE_DIR"
else
echo "1"
cd "$CLONE_DIR"
echo "2"
git init
chmod -R a+rwX .git
echo "3"
git remote add origin $(params.url)
echo "4"
git pull --depth=$(params.depth) origin master --allow-unrelated-histories
cd "$CLONE_DIR"
fi
if [ -n "$(params.refspec)" ]; then