Skip to content

Conversation

workbysaran
Copy link
Contributor

@workbysaran workbysaran commented Aug 31, 2025

Resolved / Related Issues

Closes #17385

Steps used to test these changes

Method 1: Using Command Palette
Opened the Files app and navigated to an available folder.
Pressed Ctrl + Shift + P to open the command palette.
Entered Clone and selected Clone Git Repository.
Pasted https://gitlab.com/es-de/emulationstation-de.git in the repository URL text box.
Verified that the Clone button was enabled.
Clicked the Clone button, and the repository was successfully cloned to the local folder.

Method 2: Using Drag & Drop
Opened the Files app and navigated to an available folder.
Dragged and dropped the repository link (https://gitlab.com/es-de/emulationstation-de.git) into the Files window.
Verified that the Clone button was enabled.
Clicked the Clone button, and the repository was successfully cloned to the local folder.

Note:

Repeated the above steps with https://github.com/files-community/Files.git to ensure there was no impact on cloning existing GitHub URLs.

@yaira2 yaira2 self-requested a review August 31, 2025 19:58
@yaira2 yaira2 force-pushed the sg/gitlab-cloning-support branch from 427b481 to e4e6615 Compare August 31, 2025 21:36
@yaira2 yaira2 changed the title Feature: Add support for GitLab repository URLs Code Quality: Added support for GitLab repository URLs Sep 1, 2025
@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Sep 1, 2025
@SilverGreen93
Copy link
Contributor

Will this work with other links such as git://git.w1.fi/hostap.git ?

@yaira2
Copy link
Member

yaira2 commented Sep 1, 2025

Will this work with other links such as git://git.w1.fi/hostap.git ?

Not currently, but it should be simple enough to update the regex to support any link ending with git.

Extended the repository URL regex to accept both github.com and gitlab.com
@yaira2 yaira2 force-pushed the sg/gitlab-cloning-support branch from aec16f5 to e767230 Compare September 2, 2025 14:40
@yaira2 yaira2 force-pushed the sg/gitlab-cloning-support branch from e767230 to c1a1fe2 Compare September 2, 2025 14:41
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 changed the title Code Quality: Added support for GitLab repository URLs Feature: Added support for cloning GitLab repository URLs Sep 2, 2025
@yaira2 yaira2 merged commit 1908829 into files-community:main Sep 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add git support for GitLab
3 participants