Skip to content

Commit 0567456

Browse files
committed
Merge branch 'main' into lunny/add_missed_auto_merge_action
2 parents 799ac4f + fffc855 commit 0567456

34 files changed

+178
-172
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,14 @@
2929
poetry
3030

3131
# backend
32+
go_1_23
3233
gofumpt
3334
sqlite
3435
];
36+
shellHook = ''
37+
export GO="${pkgs.go_1_23}/bin/go"
38+
export GOROOT="${pkgs.go_1_23}/share/go"
39+
'';
3540
};
3641
}
3742
);

models/git/branch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ type FindRecentlyPushedNewBranchesOptions struct {
440440
}
441441

442442
type RecentlyPushedNewBranch struct {
443+
BranchRepo *repo_model.Repository
444+
BranchName string
443445
BranchDisplayName string
444446
BranchLink string
445447
BranchCompareURL string
@@ -540,7 +542,9 @@ func FindRecentlyPushedNewBranches(ctx context.Context, doer *user_model.User, o
540542
branchDisplayName = fmt.Sprintf("%s:%s", branch.Repo.FullName(), branchDisplayName)
541543
}
542544
newBranches = append(newBranches, &RecentlyPushedNewBranch{
545+
BranchRepo: branch.Repo,
543546
BranchDisplayName: branchDisplayName,
547+
BranchName: branch.Name,
544548
BranchLink: fmt.Sprintf("%s/src/branch/%s", branch.Repo.Link(), util.PathEscapeSegments(branch.Name)),
545549
BranchCompareURL: branch.Repo.ComposeBranchCompareURL(opts.BaseRepo, branch.Name),
546550
CommitTime: branch.CommitTime,

modules/repository/branch.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package repository
66
import (
77
"context"
88
"fmt"
9-
"strings"
109

1110
"code.gitea.io/gitea/models/db"
1211
git_model "code.gitea.io/gitea/models/git"
@@ -52,9 +51,6 @@ func SyncRepoBranchesWithRepo(ctx context.Context, repo *repo_model.Repository,
5251
{
5352
branches, _, err := gitRepo.GetBranchNames(0, 0)
5453
if err != nil {
55-
if strings.Contains(err.Error(), "ref file is empty") {
56-
return 0, nil
57-
}
5854
return 0, err
5955
}
6056
log.Trace("SyncRepoBranches[%s]: branches[%d]: %v", repo.FullName(), len(branches), branches)

options/locale/locale_cs-CZ.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3563,7 +3563,6 @@ conda.install=Pro instalaci balíčku pomocí Conda spusťte následující př
35633563
container.details.type=Typ obrazu
35643564
container.details.platform=Platforma
35653565
container.pull=Stáhněte obraz z příkazové řádky:
3566-
container.digest=Výběr:
35673566
container.multi_arch=OS/architektura
35683567
container.layers=Vrstvy obrazů
35693568
container.labels=Štítky

options/locale/locale_de-DE.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3552,7 +3552,6 @@ conda.install=Um das Paket mit Conda zu installieren, führe den folgenden Befeh
35523552
container.details.type=Container-Image Typ
35533553
container.details.platform=Plattform
35543554
container.pull=Downloade das Container-Image aus der Kommandozeile:
3555-
container.digest=Digest:
35563555
container.multi_arch=Betriebsystem / Architektur
35573556
container.layers=Container-Image Ebenen
35583557
container.labels=Labels

options/locale/locale_el-GR.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3236,7 +3236,6 @@ conda.install=Για να εγκαταστήσετε το πακέτο χρησ
32363236
container.details.type=Τύπος Εικόνας
32373237
container.details.platform=Πλατφόρμα
32383238
container.pull=Κατεβάστε την εικόνα από τη γραμμή εντολών:
3239-
container.digest=Σύνοψη:
32403239
container.multi_arch=ΛΣ / Αρχιτεκτονική
32413240
container.layers=Στρώματα Εικόνας
32423241
container.labels=Ετικέτες

options/locale/locale_en-US.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3573,7 +3573,8 @@ conda.install = To install the package using Conda, run the following command:
35733573
container.details.type = Image Type
35743574
container.details.platform = Platform
35753575
container.pull = Pull the image from the command line:
3576-
container.digest = Digest:
3576+
container.images = Images
3577+
container.digest = Digest
35773578
container.multi_arch = OS / Arch
35783579
container.layers = Image Layers
35793580
container.labels = Labels

options/locale/locale_es-ES.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,6 @@ conda.install=Para instalar el paquete usando Conda, ejecute el siguiente comand
32153215
container.details.type=Tipo de imagen
32163216
container.details.platform=Plataforma
32173217
container.pull=Arrastra la imagen desde la línea de comandos:
3218-
container.digest=Resumen:
32193218
container.multi_arch=SO / Arquitectura
32203219
container.layers=Capas de imagen
32213220
container.labels=Etiquetas

options/locale/locale_fr-FR.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3564,7 +3564,6 @@ conda.install=Pour installer le paquet en utilisant Conda, exécutez la commande
35643564
container.details.type=Type d'image
35653565
container.details.platform=Plateforme
35663566
container.pull=Tirez l'image depuis un terminal :
3567-
container.digest=Empreinte :
35683567
container.multi_arch=SE / Arch
35693568
container.layers=Calques d'image
35703569
container.labels=Labels

0 commit comments

Comments
 (0)