Skip to content

Commit

Permalink
build: allow building from pull refs
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Feb 4, 2025
1 parent a075d98 commit 542d61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ get_sources() {

# TODO: re-investigate and optimize this
git clone --depth 1 "${gitrepo}" .
git fetch origin --depth 300 "${gitref}"
git fetch origin --depth 300 "${gitref}:branch"
git ls-remote --tags --sort=version:refname 2>&- \
| awk "END{printf \"+%s:%s\\n\",\$2,\$2}" \
| git fetch origin --depth=300
git -c advice.detachedHead=false checkout --force "${gitref}"
git -c advice.detachedHead=false checkout --force branch
git fetch origin --depth=300 --update-shallow

log "Commit information"
Expand Down

0 comments on commit 542d61f

Please sign in to comment.