replaced hardcoded main with actual target_branch name'

This commit is contained in:
Patryk Kowalski
2023-07-24 16:58:11 +02:00
parent ca42a54bc3
commit 6170995665

View File

@ -72,7 +72,7 @@ class LocalGitProvider(GitProvider):
try:
logging.debug('Rebasing the temporary branch on the main branch...')
self.repo.git.rebase('main')
self.repo.git.rebase(self.branch_name)
except GitCommandError as e:
raise ValueError('Error while rebasing. Resolve conflicts before retrying.') from e