ports and git, first steps

Michael Grimm trashcan at ellael.org
Thu Mar 4 13:46:26 UTC 2021


Ulrich Spörlein <uqs at FreeBSD.org> wrote:
> On Wed, 2021-03-03 at 16:10:15 +0100, Michael Grimm wrote:

>> Does anyone know if poudriere is using 'git pull —rebase' as default?
> 
> It's just a bunch of shell scripts, so easy to check:
> 
> % git grep GIT_CMD
> src/share/poudriere/common.sh:: ${GIT_CMD:=git}
> src/share/poudriere/jail.sh:                    ${GIT_CMD} clone ${GIT_DEPTH} -q -b ${VERSION} ${GIT_FULLURL} ${SRC_BASE} || err 1 " fail"
> src/share/poudriere/jail.sh:                    ${GIT_CMD} -C ${SRC_BASE} pull --rebase -q || err 1 " fail"
> src/share/poudriere/jail.sh:                            ${GIT_CMD} checkout -q "${TORELEASE}" || err 1 " fail"
> src/share/poudriere/jail.sh:            git_sha=$(${GIT_CMD} -C ${SRC_BASE} rev-parse --short HEAD)
> src/share/poudriere/ports.sh:                   ${GIT_CMD} clone --depth=1 --single-branch ${quiet} -b ${BRANCH} ${GIT_FULLURL} ${PTMNT} || err 1 " fail"
> src/share/poudriere/ports.sh:           ${GIT_CMD} -C ${PORTSMNT:-${PTMNT}} pull --rebase ${quiet}

Sorry for the noise, I should have find out by myself :-(

> Besides, `git pull --rebase` is pretty much the only sane choice for poudriere anyway.

Good to know. Now, all I need to modify is the git repository's server name after the final migration.

Thanks and regards,
Michael


More information about the freebsd-questions mailing list