[go: up one dir, main page]

Skip to content

Clone button should show paths for current branch

Insight

I'm looking at a branch. Want to clone it locally.

Supporting evidence

https://gitlab.com/belegdol/kernel-ark/-/tree/fedora-5.11-s0ix-6 Click Clone

Result: https://gitlab.com/belegdol/kernel-ark.git which is NOT the branch one was looking at

Expected: an URL like this git clone https://gitlab.com/belegdol/kernel-ark/-/tree/fedora-5.11-s0ix-6 (not sure if possible though?) or this git clone https://gitlab.com/belegdol/kernel-ark -b fedora-5.11-s0ix-6 So copy-pasting that command would checkout only that branch.

Action

Clone links should reflect current branch one looks at.

Edited by Marius