FS#35776 - [pacman] [makepkg] Speed Up git clone - shallow clone

Attached to Project: Arch Linux
Opened by Pritam Baral (pritambaral) - Thursday, 13 June 2013, 14:21 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 13 June 2013, 14:25 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
git clone downloads the whole git history of a repo, while shallow clones can be used to limit history to just 1. This saves bandwidth, time and space.

The most common use of makepkg is to, well, build packages. As such, any git repo supplied as source in PKGBUILD is cloned by makepkg. The local git repo is immediately useless after getting the working tree set-up. Why not make that clone shallow?

References: Check man git-clone for --depth
This task depends upon

Closed by  Dave Reisner (falconindy)
Thursday, 13 June 2013, 14:25 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#23065 

Loading...