mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Some code improvements (#14266)
This commit is contained in:
parent
8688c2be95
commit
3c96a37162
5 changed files with 17 additions and 3 deletions
|
@ -137,6 +137,9 @@ func fixPublisherIDforTagReleases(x *xorm.Engine) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if gitRepo != nil {
|
||||
gitRepo.Close()
|
||||
}
|
||||
|
||||
if err := sess.Commit(); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue