From 91d7bcbab19d877ae8354180c4ab165236eea556 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 4 Dec 2024 11:34:05 +0000 Subject: [PATCH] Update roles/home/scripts/commits.sh --- roles/home/scripts/commits.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/home/scripts/commits.sh b/roles/home/scripts/commits.sh index 29c758e..99f0d06 100644 --- a/roles/home/scripts/commits.sh +++ b/roles/home/scripts/commits.sh @@ -26,6 +26,8 @@ create_pr_from_files() { local commit_message="" local new_branch="pr-$(date +%Y%m%d%H%M%S)" + git checkout "${origin_branch}" + git checkout -b "$new_branch" git add "${files[@]}"