summaryrefslogtreecommitdiffstats
path: root/services/agit
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-10-11 06:24:07 +0200
committerGitHub <noreply@github.com>2023-10-11 06:24:07 +0200
commitebe803e514acb4eedc884226be2489ee6b4acd28 (patch)
tree3f4d38f8267142dcd0e8df7d76cd4fe04c47b85e /services/agit
parent[skip ci] Updated translations via Crowdin (diff)
downloadforgejo-ebe803e514acb4eedc884226be2489ee6b4acd28.tar.xz
forgejo-ebe803e514acb4eedc884226be2489ee6b4acd28.zip
Penultimate round of `db.DefaultContext` refactor (#27414)
Part of #27065 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services/agit')
-rw-r--r--services/agit/agit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/agit/agit.go b/services/agit/agit.go
index a39034b025..acfedf09d4 100644
--- a/services/agit/agit.go
+++ b/services/agit/agit.go
@@ -237,7 +237,7 @@ func UserNameChanged(ctx context.Context, user *user_model.User, newName string)
for _, pull := range pulls {
pull.HeadBranch = strings.TrimPrefix(pull.HeadBranch, user.LowerName+"/")
pull.HeadBranch = newName + "/" + pull.HeadBranch
- if err = pull.UpdateCols("head_branch"); err != nil {
+ if err = pull.UpdateCols(ctx, "head_branch"); err != nil {
return err
}
}