Skip to content

Migrating repo from GitLab fails if Wiki is checked #19545

Closed
@fnetX

Description

@fnetX

Description

Migrating repos from GitLab fails if the user ticks the "wiki" option in Gitea, tested from https://gitlab.com/interpeer/caprock which was reported on https://Codeberg.org

It works fine if the "wiki" checkbox is left unticked. Probably a check is missing that the wiki exists // what is the branch.

log excerpt (seems relevant):

2022/04/28 22:06:21 ...s/repository/repo.go:102:MigrateRepositoryGitData() [W] Clone wiki: exit status 128 - fatal: Remote branch master not found in upstream origin
	
2022/04/28 22:06:23 ...ervices/task/task.go:56:handle() [E] Run task failed: unable to write commit-graph for '/data/git/gitea-repositories/interpeer/liberate.wiki.git' : chdir /data/git/gitea-repositories/interpeer/liberate.wiki.git: no such file or directory

Gitea Version

1.17.0+dev-491-g8eb1cd926

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Codeberg deployment + try.gitea.io

Database

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions