]> source.dussan.org Git - gitea.git/commit
Concatenate error in `checkIfPRContentChanged` (#28731) (#28737)
authorGiteabot <teabot@gitea.io>
Tue, 9 Jan 2024 14:06:12 +0000 (22:06 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 14:06:12 +0000 (14:06 +0000)
commitbce27d0a31b42a68cc3faa52dc0fb23b612b02de
tree7ab1cde5b6ed56614ccd47f69fc38a2f841cfe77
parent12f418a7e80887ec9927eea27f5770736169c17a
Concatenate error in `checkIfPRContentChanged` (#28731) (#28737)

Backport #28731 by @earl-warren

- If there's a error with the Git command in `checkIfPRContentChanged`
the stderr wasn't concatendated to the error, which results in still not
knowing why an error happend.
- Adds concatenation for stderr to the returned error.
- Ref: https://codeberg.org/forgejo/forgejo/issues/2077

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
services/pull/pull.go