From 07c4d7b3def0a8ebe788a8f2c843a4e1de4f6900 Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Fri, 19 May 2023 16:11:06 +0200 Subject: [PATCH] Add workaround for https://github.com/cpina/github-action-push-to-another-repository/issues/103 --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index b462503..f5eb0da 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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" } || {