Change prevent git update issue.

Add '--no-rebase' to git pull (update) command to prevent issues with git 2.37+
This commit is contained in:
Prinz23 2024-02-13 11:34:32 +01:00 committed by JackDandy
parent 9f4be5238d
commit 7f51b9ce4d
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,9 @@
### 3.30.9 (2024-02-07 23:10:00 UTC) ### 3.30.10 (2024-02-13 11:00:00 UTC)
* Change prevent git update issue
### 3.30.9 (2024-02-07 23:10:00 UTC)
* Change allow Python 3.12.2 * Change allow Python 3.12.2

View file

@ -601,9 +601,10 @@ class GitUpdateManager(UpdateManager):
if self.branch == self._find_installed_branch(): if self.branch == self._find_installed_branch():
if not self._cur_pr_number: if not self._cur_pr_number:
_, _, exit_status = self._run_git(['pull', '-f', '%s' % sickgear.GIT_REMOTE, '%s' % self.branch]) _, _, exit_status = self._run_git(['pull', '-f', '--no-rebase', '%s' % sickgear.GIT_REMOTE,
'%s' % self.branch])
else: else:
_, _, exit_status = self._run_git(['pull', '-f', '%s' % sickgear.GIT_REMOTE, _, _, exit_status = self._run_git(['pull', '-f', '--no-rebase', '%s' % sickgear.GIT_REMOTE,
'pull/%s/head:%s' % (self._cur_pr_number, self.branch)]) 'pull/%s/head:%s' % (self._cur_pr_number, self.branch)])
else: else: