Skip to content

Can't migrate the github repo with ssh protocol #19096

@hansen6878

Description

@hansen6878

Gitea Version

1.16.4

Git Version

2.20.1

Operating System

debian10(bluster)

How are you running Gitea?

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

In my network environment, it is very unstable to migrate github repo with https protocol(git clone https://github.com/ownxxx/repoxxx.git), so I have to use ssh protocol(git clone git@github.com:ownxxx/repoxxx.git) to migrate github repo.
when i use the migrate feature of gitea to mirror github repo, and type the ssh url(git@github.com:ownxxx/repoxxx.git), it will show the invalid URL message: "is not a valid URL."
does gitea really support migrate github repo with ssh protocol now? or it's my migrate method is wrong?

BTW: i have make and setup the pair of RSA ssh key for github, and can clone the repo successfully with raw command method on the terminal.

thanks a lot!

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions