Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#23065 - [abs] add --depth 1 argument to git clone

Attached to Project: Arch Linux
Opened by Greg (dolby) - Sunday, 27 February 2011, 11:29 GMT
Last edited by Allan McRae (Allan) - Saturday, 05 March 2011, 02:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No


The PKGBUILD-git.proto clones the entire development tree of a specified project in order to build a package. That leads to downloads of hundreds of megabytes in certain occasions.
As the purpose of the template script is to create a package of the development version of an application, and not to get people involved in its development, i propose adding --depth 1 to the git clone invocation.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 05 March 2011, 02:11 GMT
Reason for closing:  Won't implement
Comment by Greg (dolby) - Sunday, 27 February 2011, 21:26 GMT
I guess that doesnt work cause the repo is cloned again locally this time to the -build directory.
The git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" line needs to be changed to something like cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build" (which is what all the other proto's do)
Comment by Greg (dolby) - Sunday, 27 February 2011, 22:00 GMT
It seems the benefits of this are mostly bandwidth related ones though, because the second git clone "hardlinks the .git/objects/ directory in order to save space" so by manually copying it, the src tree automatically becomes 2 x $_gitname.