From cfd1089ff3e140db4e7c89725a799172e04e5a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 3 Aug 2023 15:29:50 +0200 Subject: [PATCH] tea-create-pr: use force push --- flake-parts/tea-create-pr/script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake-parts/tea-create-pr/script.sh b/flake-parts/tea-create-pr/script.sh index cbe9d6d..385d714 100644 --- a/flake-parts/tea-create-pr/script.sh +++ b/flake-parts/tea-create-pr/script.sh @@ -21,8 +21,7 @@ rest=$(echo "$COMMIT_MSG" | tail -n+2) if [[ "$firstLine" == "$rest" ]]; then rest="" fi - -git push -u "$remoteName" HEAD:refs/heads/"$tempRemoteBranch" +git push --force -u "$remoteName" HEAD:refs/heads/"$tempRemoteBranch" tea pr create \ --title "$firstLine" \