import from gogs /github. #12858

Closed
opened 2025-11-02 10:23:12 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @poloskey on GitHub (Apr 16, 2024).

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

Originally created by @poloskey on GitHub (Apr 16, 2024). ### 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
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 10:23:12 -06:00
Author
Owner

@lunny commented on GitHub (May 5, 2024):

Can you reproduce this on https://try.gitea.io ? And can you give an example repository?

@lunny commented on GitHub (May 5, 2024): Can you reproduce this on https://try.gitea.io ? And can you give an example repository?
Author
Owner

@yp05327 commented on GitHub (May 9, 2024):

I can reproduce it.

@yp05327 commented on GitHub (May 9, 2024): I can reproduce it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12858