On 04/11/14 21:55, Johannes Löthberg wrote:
The --mirror switch pulls down all refs in a repository, even ones that aren't regular branches and tags.
Since sites like GitHub stores a ref for every pull request under the refs/pull/ namespace, --mirror will pull down the history that has been part of every pull request, even after a someone has for example run git-filter-branch on it to get some big binaries out of the history, which sometimes blows the repository size and the time to clone it up by a very large factor.
Using --bare solves this as it only pulls down branches and tags, and all makepkg needs is a bare repository.
I pulled this to my local makepkg to test it for a while... second build it broke. My pacman-git PKGBUILD has: source=('git+file:///home/arch/code/pacman#branch=patchqueue') I built that, created a new branch in the repo in /home/arch/code/pacman and tried building from it: source=('git+file:///home/arch/code/pacman#branch=new') This fails with a --bare checkout. Allan