Skip to content

import from gogs /github. #30521

Closed
Closed
@poloskey

Description

@poloskey

Description

import from gogs/github will faill unless you set the in app.ini under [repository] the DEFAULT_BRANCH to master

to reproduce:

add a repository to a user (gitea/data/gitea-repositories/user/
go in gui to user settingss -> Reposistories -> choose addapt files to import reposistory

the branch button on the imported repository will give a error 404

now set the in app.ini under [repository] the DEFAULT_BRANCH = master, restart gittea and try to import another one
or remove the imported one.

the branch button will work as expected

Don't forget to push the button "Delete any repositories that are missing their Git files" before importing the same repository again.

maby make a note of this the docs?

Gitea Version

1.221.11

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.25.1

Operating System

ubuntu/linux

How are you running Gitea?

using the lastest binary from gitea.com

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions