From 47aa971cc6e5678d527f1d337381bae3918c76ea Mon Sep 17 00:00:00 2001 From: davrot Date: Tue, 28 Jan 2025 15:31:20 +0000 Subject: [PATCH] services/repository/files/update.go aktualisiert --- services/repository/files/update.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/repository/files/update.go b/services/repository/files/update.go index 0c47dfa7c6..5017dc9e07 100644 --- a/services/repository/files/update.go +++ b/services/repository/files/update.go @@ -88,7 +88,8 @@ func ChangeRepoFiles(ctx context.Context, repo *repo_model.Repository, doer *use defer closer.Close() // oldBranch must exist for this operation - if _, err := gitRepo.GetBranch(opts.OldBranch); err != nil && !repo.IsEmpty { + if _, err := gitRepo.GetBranch(opts.OldBranch); + err != nil && !repo.IsEmpty { return nil, err }