Skip to content

Commit 01c1a59

Browse files
authored
Updates patches for Gitea v1.23.7 (#10)
1 parent ea64a28 commit 01c1a59

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

patches/0006-BLENDER-Projects-button-to-show-hide-issue-details-a.patch

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ index 966d3bf604..7f97b13c7d 100644
2020
@@ -20,6 +20,16 @@
2121
}}
2222
</div>
23-
</div>
2423
+ <div class="ui compact mini menu" style="margin-left: auto; margin-right: 1em;">
2524
+ <button class="item btn" onclick="clickDetailsView()">
2625
+ <span class="issue-card-details">Show Details</span>

patches/0012-BLENDER-Edit-file-workflow-for-creating-a-fork-and-p.patch

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,6 @@ the base repository that does the right thing.
6060
create mode 100644 templates/repo/editor/fork.tmpl
6161
create mode 100644 templates/repo/view_content.tmpl
6262

63-
diff --git a/models/git/branch.go b/models/git/branch.go
64-
index d1caa35947..9ac6c45578 100644
65-
--- a/models/git/branch.go
66-
+++ b/models/git/branch.go
67-
@@ -173,6 +173,18 @@ func GetBranch(ctx context.Context, repoID int64, branchName string) (*Branch, e
68-
return &branch, nil
69-
}
70-
71-
+// IsBranchExist returns true if the branch exists in the repository.
72-
+func IsBranchExist(ctx context.Context, repoID int64, branchName string) (bool, error) {
73-
+ var branch Branch
74-
+ has, err := db.GetEngine(ctx).Where("repo_id=?", repoID).And("name=?", branchName).Get(&branch)
75-
+ if err != nil {
76-
+ return false, err
77-
+ } else if !has {
78-
+ return false, nil
79-
+ }
80-
+ return !branch.IsDeleted, nil
81-
+}
82-
+
83-
func GetBranches(ctx context.Context, repoID int64, branchNames []string, includeDeleted bool) ([]*Branch, error) {
84-
branches := make([]*Branch, 0, len(branchNames))
85-
8663
diff --git a/models/repo/repo.go b/models/repo/repo.go
8764
index c5060a419f..e581c1a18d 100644
8865
--- a/models/repo/repo.go

0 commit comments

Comments
 (0)