ref: with git update-ref?
- From
Bence Ferdinandy <bence@ferdinandy.com>
- Date
- Oct 11, 2024, 20:51 UTC
- Message-ID
- <D4T9VCF8OS6U.1FMB8P6YU7I3S@ferdinandy.com>
Hi,
the documentation for `git update-ref` has this sentence:
> It also allows a "ref" file to be a symbolic pointer to another > ref file by starting with the four-byte header sequence of > "ref:".
After fumbling around a bit and getting errors like
fatal: ref:refs/remotes/origin/test: not a valid SHA1
I looked in builtin/update-ref.c and I do not see a call to refs_update_symref nor any checks for "ref:". Am I missing something here?
Thanks, Bence
-- bence.ferdinandy.com