Skip to content

Commit f137215

Browse files
committed
backporting: create git repo in unpacked sources dir
if it's not there many packages don't use git to apply patches Signed-off-by: Tomas Tomecek <[email protected]>
1 parent 8388448 commit f137215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

beeai/agents/backport_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def render_prompt(input: InputSchema) -> str:
7070
'Work inside the repository cloned at "{{ git_repo_basepath }}/{{ package }}"\n'
7171
"Download the upstream fix from {{ upstream_fix }}\n"
7272
'Store the patch file as "{{ jira_issue }}.patch" in the repository root\n'
73+
"If directory {{ unpacked_sources }} is not a git repository, run `git init` in it "
74+
"and create an initial commit\n"
7375
"Navigate to the directory {{ unpacked_sources }} and use `git am --reject` "
7476
"command to apply the patch {{ jira_issue }}.patch\n"
7577
"Resolve all conflicts inside {{ unpacked_sources }} directory and "

0 commit comments

Comments
 (0)