When migrating repository, local repository name should be guessed from source URL #3011

Closed
opened 2025-11-02 04:57:17 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mateusza on GitHub (Mar 6, 2019).

This is a very simple feature/enhancement request.

Description

When I paste source URL of a repository to clone (migrate), Gitea should automatically extract the repository name and put it into proper form field.

Screenshots

image

Originally created by @mateusza on GitHub (Mar 6, 2019). This is a very simple feature/enhancement request. <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): any, ad86b84 - Git version: Not relevant - Operating system: Not relevant - Database (use `[x]`): - [x] Not relevant - Can you reproduce the bug at https://try.gitea.io: - [x] Yes ( https://try.gitea.io/repo/migrate ) - [ ] No - [ ] Not relevant - Log gist: ## Description When I paste source URL of a repository to clone (migrate), Gitea should automatically extract the repository name and put it into proper form field. ## Screenshots ![image](https://user-images.githubusercontent.com/7002/53902478-85999e80-4041-11e9-9849-8d87307f5cfc.png)
GiteaMirror added the topic/uiissue/confirmedtype/enhancement labels 2025-11-02 04:57:17 -06:00
Author
Owner

@mateusza commented on GitHub (Mar 6, 2019):

The JS code to perform this:

$('#clone_addr').change( 
    function(){
        $('#repo_name').val(
            $('#clone_addr').val().match( /^(.*\/)?((.+?)(\.git)?)$/ )[3]
        )
    }
)
@mateusza commented on GitHub (Mar 6, 2019): The JS code to perform this: ``` $('#clone_addr').change( function(){ $('#repo_name').val( $('#clone_addr').val().match( /^(.*\/)?((.+?)(\.git)?)$/ )[3] ) } ) ```
Author
Owner

@stale[bot] commented on GitHub (May 16, 2019):

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.

@stale[bot] commented on GitHub (May 16, 2019): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3011