mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-09 00:26:09 -07:00
Since we need to download only the last snapshot, it is not necessary to download the full commits history.
Thanks @wcota PR: https://github.com/cpina/github-action-push-to-another-repository/pull/60
This commit is contained in:
parent
74596b72fa
commit
6cb505d32f
|
@ -66,7 +66,7 @@ git config --global user.email "$USER_EMAIL"
|
|||
git config --global user.name "$USER_NAME"
|
||||
|
||||
{
|
||||
git clone --single-branch --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"
|
||||
git clone --single-branch --depth 1 --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"
|
||||
} || {
|
||||
echo "::error::Could not clone the destination repository. Command:"
|
||||
echo "::error::git clone --single-branch --branch $TARGET_BRANCH $GIT_CMD_REPOSITORY $CLONE_DIR"
|
||||
|
|
Loading…
Reference in New Issue
Block a user