You are not logged in.

#1 2013-12-11 08:36:17

nikta
Member
Registered: 2013-12-06
Posts: 6

single-branch git clone in PKGBUILD

I have a github repo with several branches and I want to create a package based on the master branch. In a PKGBUILD I used "git clone https://github.com/some_account/some_repo --single-branch master" to clone only the master branch and not all the other thing. I would like to modify my PKGBUILD to use " source='git://github.com/some_account/some_repo.git' " and not directly use the above "git clone" command. How can I tell makepkg to clone olny the master branch and not all the repo in the later form?

Offline

#2 2013-12-11 08:38:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,404

Re: single-branch git clone in PKGBUILD

Check out the fragment section in man 5 PKGBUILD


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Online

#3 2013-12-11 08:54:15

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,432
Website

Re: single-branch git clone in PKGBUILD

That still downloads all branches...

The only way is to manually download the source in the prepare function.

Offline

#4 2013-12-11 09:28:27

nikta
Member
Registered: 2013-12-06
Posts: 6

Re: single-branch git clone in PKGBUILD

Allan wrote:

That still downloads all branches...
The only way is to manually downloads the source in the prepare function.

Yes you are right. It still downloads the whole repo.
Thanks

Last edited by nikta (2013-12-11 15:10:39)

Offline

Board footer

Powered by FluxBB