I'm just poking around the library, I don't have a specific use case.
Saw a segfault like follows:
FROM docker.io/library/ubuntu:mantic
RUN apt update
RUN apt install -y git python3-pygit2
RUN git config --global user.email "you@example.com"
RUN git config --global user.name "Your Name"
RUN git init
RUN touch foo
RUN git add foo
RUN git commit -m "add foo"
RUN python3 -c \
"import pygit2; repo = pygit2.Repository('.'); repo.head.rename('b1')"
I'm just poking around the library, I don't have a specific use case. Saw a segfault like follows:
debian:sid does the same.