Gitea: Migration: Fails to mirror repositories with no master branch

Created on 13 Sep 2017  路  5Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.2.0-rc2
  • Git version: 2.11.3
  • Operating system: Alpine 3.6
  • Docker Image: gitea/gitea:1.2.0-rc2 (57e5be805ca4e2981e636abbd5f074607256ca16ce8852bfa692a880c7d5d574)
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [x] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [x] Yes (provide example URL)

    • [ ] No

    • [ ] Not relevant

  • Log gist:

Description

Gitea does not allow migrating/mirroring repos with an empty master branch or no master branch.

Ideally the repo to be cloned should always be cloned as is. The default branch set for the repo must also be mirrored and be used by Gitea.

I tried cloning bcoin-org's lcoin repo from GitHub without success. https://github.com/bcoin-org/lcoin.git

Screenshots

screen shot 2017-09-13 at 20 30 59

kinbug revieweconfirmed

Most helpful comment

This no longer seems to be an issue on master. I mirrored the repo in OP successfully to https://try.gitea.io/cez81/lcoin

Only 1 branch, litecoin. No master branch.

All 5 comments

This no longer seems to be an issue on master. I mirrored the repo in OP successfully to https://try.gitea.io/cez81/lcoin

Only 1 branch, litecoin. No master branch.

I try this local with v1.6.0-rc2 and also on https://try.gitea.io/repo/

image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

Seemed to be fixed at least in Gitea Version: 1.10.0+dev-188-g2d0b90c96

Please feel free to reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fastidious picture Fastidious  路  3Comments

tuxfanou picture tuxfanou  路  3Comments

mirhec picture mirhec  路  3Comments

jorise7 picture jorise7  路  3Comments

haytona picture haytona  路  3Comments