diff --git a/roles/copy-release-tools-scripts/files/release-tools/add_master_python3_jobs.sh b/roles/copy-release-tools-scripts/files/release-tools/add_master_python3_jobs.sh index aa5ab3b9a6..0298e24577 100755 --- a/roles/copy-release-tools-scripts/files/release-tools/add_master_python3_jobs.sh +++ b/roles/copy-release-tools-scripts/files/release-tools/add_master_python3_jobs.sh @@ -57,7 +57,13 @@ done changes=$(git diff-index --name-only HEAD --) if [ -n "$changes" ]; then git checkout -b add-${SERIES}-python-jobtemplates - git add . + + # Add only the files we modified + for file in $changes; do + git add $file + done + git clean -f + git diff --cached git commit -m "$commit_msg" git show