Skip to content

Commit 6cb505d

Browse files
committed
Since we need to download only the last snapshot, it is not necessary to download the full commits history.
Thanks @wcota PR: cpina#60
1 parent 74596b7 commit 6cb505d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ git config --global user.email "$USER_EMAIL"
6666
git config --global user.name "$USER_NAME"
6767

6868
{
69-
git clone --single-branch --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"
69+
git clone --single-branch --depth 1 --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"
7070
} || {
7171
echo "::error::Could not clone the destination repository. Command:"
7272
echo "::error::git clone --single-branch --branch $TARGET_BRANCH $GIT_CMD_REPOSITORY $CLONE_DIR"

0 commit comments

Comments
 (0)