git: e7817c3094af - 2022Q3 - devel/libgit2: security update to 1.3.2

From: Matthias Fechner <>
Date: Wed, 13 Jul 2022 06:52:27 UTC
The branch 2022Q3 has been updated by mfechner:


commit e7817c3094afef2724e10aa4e6ad66b89200713e
Author:     Matthias Fechner <>
AuthorDate: 2022-07-13 06:34:58 +0000
Commit:     Matthias Fechner <>
CommitDate: 2022-07-13 06:48:55 +0000

    devel/libgit2: security update to 1.3.2
    This is a security release with multiple changes.
        This provides compatibility with git's changes to address CVE 2022-29187. As a follow up to CVE 2022-24765, now not only is the working directory of a non-bare repository examined for its ownership, but the .git directory and the .git file (if present) are also examined for their ownership.
        A fix for compatibility with git's (new) behavior for CVE 2022-24765 allows users on POSIX systems to access a git repository that is owned by them when they are running in sudo.
        A fix for further compatibility with git's (existing) behavior for CVE 2022-24765 allows users on Windows to access a git repository that is owned by the Administrator when running with escalated privileges (using runas Administrator).
        The bundled zlib is updated to v1.2.12, as prior versions had memory corruption bugs. It is not known that there is a security vulnerability in libgit2 based on these bugs, but we are updating to be cautious.
    MFH:            2022Q3
    (cherry picked from commit de1569c878b4a565f5bf35ad20a08ec8ec0ccb19)
 devel/libgit2/Makefile | 2 +-
 devel/libgit2/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/devel/libgit2/Makefile b/devel/libgit2/Makefile
index 269fcf01efc2..e1a5adc474a3 100644
--- a/devel/libgit2/Makefile
+++ b/devel/libgit2/Makefile
@@ -5,7 +5,7 @@
 PORTNAME=	libgit2
diff --git a/devel/libgit2/distinfo b/devel/libgit2/distinfo
index f862bbd2ecb9..9e0e5ff0cdf9 100644
--- a/devel/libgit2/distinfo
+++ b/devel/libgit2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655709923
-SHA256 (libgit2-libgit2-v1.3.1_GH0.tar.gz) = a2a0a90d577f1771ba9f7e98042865c3f6386c896eeefa846c3fc0c37ce7c6e0
-SIZE (libgit2-libgit2-v1.3.1_GH0.tar.gz) = 5602265
+TIMESTAMP = 1657692035
+SHA256 (libgit2-libgit2-v1.3.2_GH0.tar.gz) = 3a4469b32b73d53f9dbb7bf17b61b0cfb7dae9020e199f928fa96f12d6eb29cb
+SIZE (libgit2-libgit2-v1.3.2_GH0.tar.gz) = 5824473