Skip to content

tags aren't fetched when fetching specific commit #146

@MacMalainey

Description

@MacMalainey

When running the following commands zopen git doesn't report the proper information

mkdir git-test-dir
cd git-test-dir
git init --bare
git remote add origin -- https://github.com/golang/go
git -c protocol.version=2 fetch -f --depth=1 origin 16afa6a740fac7442e94dcd2ec5ea4a4853e45dc:refs/dummy
git -c log.showsignature=false log --no-decorate -n1 --format="format:%H %ct %D" 16afa6a740fac7442e94dcd2ec5ea4a4853e45dc --

# Expected:
# 16afa6a740fac7442e94dcd2ec5ea4a4853e45dc 1734108730 grafted, tag: go1.24rc1, refs/dummy

# Got using zopen:
# 16afa6a740fac7442e94dcd2ec5ea4a4853e45dc 1734108730 grafted

Using protocol.version=2 is supposed to fix this issue but that doesn't seem to work on zopen git.

It may be related to this:
https://lore.kernel.org/git/[email protected]/

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions