You are not logged in.
For github the syntax is:
source=(
"git://github.com/xbmc/xbmc.git#branch=$_name"
I cannot locate the equivalent syntax for a gitlab repo. Little help?
Last edited by graysky (2021-10-08 17:32:28)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
The `#branch=$name` syntax is something makepkg-specific, not GitHub. It should work for all Git repositories, regardless of where they are hosted (GitLab, locally, or wherever else).
If not, can you please provide the specific case where it doesn't work?
Offline
I would like to modify shinobi-git to pull the dev branch using that syntax but it does not work.
source=(git://gitlab.com/Shinobi-Systems/Shinobi.git#branch=dev
==> Retrieving sources...
-> Cloning Shinobi git repo...
Cloning into bare repository '/scratch/shinobi-git/Shinobi'...
fatal: read error: Connection reset by peer
==> ERROR: Failure while downloading Shinobi git repo
Aborting...
==> ERROR: Could not download sources.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You didn't just add the branch, you also switched the protocol from https to git.
Offline
You didn't just add the branch, you also switched the protocol from https to git.
In my kodi-git package, that protocol and syntax works with github but not with gitlab. But, to your point, making it git+https works.
source=(git+https://gitlab.com/Shinobi-Systems/Shinobi.git#branch=dev
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline