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: 11,911

Re: single-branch git clone in PKGBUILD

Check out the fragment section in man 5 PKGBUILD


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

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

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
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