mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-26 17:00:04 +02:00
Backport #31788 by @wolfogre Fix #31784. Before: <img width="1648" alt="image" src="https://github.com/user-attachments/assets/03f32545-4a85-42ed-bafc-2b193a5d8023"> After: <img width="1653" alt="image" src="https://github.com/user-attachments/assets/e5bcaf93-49cb-421f-aac1-5122bc488b02"> Co-authored-by: Jason Song <i@wolfogre.com> (cherry picked from commit a39fe5325266f1c079e0e54abc68e6470764eb44) Conflicts: models/git/lfs_lock.go trivial context conflict
This commit is contained in:
parent
8e8a07cc15
commit
4c5e4e672d
5 changed files with 161 additions and 10 deletions
|
@ -95,6 +95,11 @@ func LFSLocks(ctx *context.Context) {
|
|||
ctx.ServerError("LFSLocks", err)
|
||||
return
|
||||
}
|
||||
if err := lfsLocks.LoadAttributes(ctx); err != nil {
|
||||
ctx.ServerError("LFSLocks", err)
|
||||
return
|
||||
}
|
||||
|
||||
ctx.Data["LFSLocks"] = lfsLocks
|
||||
|
||||
if len(lfsLocks) == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue