glab icon indicating copy to clipboard operation
glab copied to clipboard

Cannot clone .wiki.git repos

Open profclems opened this issue 4 years ago • 1 comments

Description Currently, glab doesn't support working with .wiki.git repos. I tried cloning https://gitlab.com/gnutls/gnutls.wiki.git and it fails

ProfClems:  ~/gitrepo 
→ gl repo clone gnutls/gnutls.wiki.git
GET https://gitlab.com/api/v4/projects/gnutls/gnutls.wiki.git: 404 {message: 404 Project Not Found}

It works when cloned with git:

→ git clone [email protected]:gnutls/gnutls.wiki.git
Cloning into 'gnutls.wiki'...
remote: Enumerating objects: 262, done.
remote: Counting objects: 100% (262/262), done.
remote: Compressing objects: 100% (224/224), done.
remote: Total 262 (delta 121), reused 105 (delta 36), pack-reused 0
Receiving objects: 100% (262/262), 32.15 KiB | 115.00 KiB/s, done.
Resolving deltas: 100% (121/121), done.

Solution In order for this to work, glab should acknowledge that the actual repo is https://gitlab.com/gnutls/gnutls by trimming off the .wiki.git when making queries but perform git operations with the https://gitlab.com/gnutls/gnutls.wiki.git

profclems avatar Mar 11 '21 00:03 profclems

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

clemsbot avatar Apr 10 '21 01:04 clemsbot