1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-27 15:09:50 +01:00

Fix crash in 'git-obs pr get --patch'

This commit is contained in:
2025-06-25 15:03:48 +02:00
parent 8ff667d28e
commit 0cfbcfcd05

View File

@@ -46,7 +46,7 @@ class PullRequestGetCommand(osc.commandline_git.GitObsCommand):
if args.patch:
print("")
print(tty.colorize("Patch:", "bold"))
patch = gitea_api.PullRequest.get_patch(self.gitea_conn, owner, repo, pull).data
patch = gitea_api.PullRequest.get_patch(self.gitea_conn, owner, repo, pull)
patch = highlight_diff(patch)
print(patch.decode("utf-8"))