Updated comment

This commit is contained in:
David Murphy 2024-07-24 14:36:11 -06:00 committed by Daniel Wozniak
parent 1b66ffc3ac
commit c25c8d55e8

View file

@ -1867,7 +1867,8 @@ class Pygit2(GitProvider):
# cachedir).
head_ref = local_head.target
# If head_ref is not a string, it will point to a
# pygit2.id object and we are in detached HEAD mode.
# pygit2.id object (oid is deprecated and removed) and
# we are in detached HEAD mode.
# Therefore, there is no need to add a local reference. If
# head_ref == local_ref, then the local reference for HEAD
# in refs/heads/ already exists and again, no need to add.