mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 15:46:09 -07:00
Add workaround for https://github.com/cpina/github-action-push-to-another-repository/issues/103
This commit is contained in:
parent
b2e2c48ca5
commit
07c4d7b3de
|
@ -65,10 +65,14 @@ echo "[+] Enable git lfs"
|
|||
git lfs install
|
||||
|
||||
echo "[+] Cloning destination git repository $DESTINATION_REPOSITORY_NAME"
|
||||
|
||||
# Setup git
|
||||
git config --global user.email "$USER_EMAIL"
|
||||
git config --global user.name "$USER_NAME"
|
||||
|
||||
# workaround for https://github.com/cpina/github-action-push-to-another-repository/issues/103
|
||||
git config --global http.version HTTP/1.1
|
||||
|
||||
{
|
||||
git clone --single-branch --depth 1 --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"
|
||||
} || {
|
||||
|
|
Loading…
Reference in New Issue
Block a user