The branch stable/12 has been updated by gjb: URL: https://cgit.FreeBSD.org/src/commit/?id=41f27ff229564baab3f1c92be6222ea52fb0417d
commit 41f27ff229564baab3f1c92be6222ea52fb0417d Author: Glen Barber <[email protected]> AuthorDate: 2021-05-12 15:29:54 +0000 Commit: Glen Barber <[email protected]> CommitDate: 2021-05-12 15:29:54 +0000 release: fix logic for ports update/checkout if the directory exists This is a direct commit to stable/12. Sponsored by: Rubicon Communications, LLC ("Netgate") --- release/release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/release/release.sh b/release/release.sh index 9ea6c5ee2cae..7326157a8562 100755 --- a/release/release.sh +++ b/release/release.sh @@ -221,7 +221,11 @@ chroot_setup() { ${VCSCMD} ${FORCE_SRC_KEY} ${SRCBRANCH} ${CHROOTDIR}/usr/src fi if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then - git -C ${CHROOTDIR}/usr/ports -b ${PORTBRANCH} clone + if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then + git -C ${CHROOTDIR}/usr/ports pull -q + else + git -C ${CHROOTDIR}/usr/ports -b ${PORTBRANCH} clone + fi fi if [ -z "${CHROOTBUILD_SKIP}" ]; then _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
