mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix(release): upload before deleting on --clobber; show repo view to readers without code access
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
3 files changed
+13
-7
No files matched your search
@@ -109,7 +109,8 @@ func (s Repositories) Readme(ctx context.Context, repo, ref string) (name, conte
|
||||
return c.Repositories.ListContents(ctx, owner, name, ref, "")
|
||||
})
|
||||
if err != nil {
|
||||
if IsNotFound(err) {
|
||||
// A reader without code access sees the repository but not its files.
|
||||
if IsNotFound(err) || IsForbidden(err) {
|
||||
return "", "", nil
|
||||
}
|
||||
return "", "", err
|
||||
|
||||
Reference in new issue
Block a user