Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P Pacman
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pacman
  • Pacman
  • Merge requests
  • !53

checkout correct branch in case of GITFLAGS are present

  • Review changes

  • Download
  • Patches
  • Plain diff
Open solo turn requested to merge soloturn/pacman:filter-blob-none into master Feb 04, 2023
  • Overview 4
  • Commits 3
  • Pipelines 16
  • Changes 1

passing GITFLAGS is desired to speed up clone when making packages. possible flags are --filter=tree:0 or --depth=1. makepkg makes a partial or shallow clone subsequently,which in some cases fail. so make sure the desired branch/tag specified in PKGBUILD is checked out in those cases.

when doing the default mirroring, this is not necessary, as all branches are on local disk.

tested with llvm-git, linux-mainline, swift-language-git, swift-language along the following lines:

git clone ssh://aur@aur.archlinux.org/llvm-git
cd llvm-git
GITFLAGS="--filter=tree:0" makepkg
# wait a while until remote repo got new commits
GITFLAGS="--filter=tree:0" makepkg
# or, to debug
GITFLAGS="--filter=tree:0" bash -x makepkg
git clone ssh://aur@aur.archlinux.org/llvm-git
cd llvm-git
GITFLAGS="--depth=1" makepkg
# wait a while until remote repo got new commits
GITFLAGS="--depth=1" makepkg
git clone ssh://aur@aur.archlinux.org/llvm-git
cd llvm-git
makepkg
# wait a while until remote repo got new commits
makepkg
sudo cp scripts/libmakepkg/source/git.sh.in /usr/share/makepkg/source/git.sh
paru -S llvm-git
Edited Feb 07, 2023 by solo turn
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: filter-blob-none