[pacman-dev] [PATCH] makepkg: git-clone with --bare instead of --mirror

Allan McRae allan at archlinux.org
Wed Nov 5 00:57:13 UTC 2014

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:


I built that, created a new branch in the repo in /home/arch/code/pacman
and tried building from it:


This fails with a --bare checkout.


More information about the pacman-dev mailing list