Re: with git update-ref?
- From
Bence Ferdinandy <bence@ferdinandy.com>
- Date
- Oct 11, 2024, 21:04 UTC
- Message-ID
- <D4TA5EXQFFA0.1XVEK1RM2Q6VA@ferdinandy.com>
- In-Reply-To
- <cb60b7ad-7902-4293-81e9-06d1b1526842@app.fastmail.com>
On Fri Oct 11, 2024 at 22:56, Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com> wrote:
> `ref: refs/remotes/origin/test`? (space after colon)
I tried a couple of variations and no:
❯ git update-ref --no-deref refs/remotes/origin/HEAD 'ref: refs/remotes/origin/test' fatal: ref: refs/remotes/origin/test: not a valid SHA1 ❯ git update-ref refs/remotes/origin/HEAD 'ref: refs/remotes/origin/test' fatal: ref: refs/remotes/origin/test: not a valid SHA1 ❯ git update-ref --no-deref refs/remotes/origin/HEAD 'ref:refs/remotes/origin/test' fatal: ref:refs/remotes/origin/test: not a valid SHA1 ❯ git update-ref refs/remotes/origin/HEAD 'ref:refs/remotes/origin/test' fatal: ref:refs/remotes/origin/test: not a valid SHA1
I guess the intended way of doing this is via git symbolic-ref anyway, but I'm curious if this should work somehow or I'm misinterpreting the meaning of that sentence.
-- bence.ferdinandy.com