git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git read-tree doesn't accept tree-ish
@ 2021-08-23 17:31 Nikita Bobko
  2021-08-23 17:38 ` Elijah Newren
  2021-08-23 18:53 ` Jeff King
  0 siblings, 2 replies; 7+ messages in thread
From: Nikita Bobko @ 2021-08-23 17:31 UTC (permalink / raw)
  To: git

```
git init
echo foo > foo
git add --all
git commit -m 'foo'

echo bar > foo
git add --all
git commit -m 'bar'

git read-tree HEAD~:foo
```
EXP: Read information about file `foo` into index
ACT: `fatal: failed to unpack tree object HEAD~:foo`

I expect it to work because manpage says that `git-read-tree` accepts
`<tree-ish>`

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-23 19:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 17:31 git read-tree doesn't accept tree-ish Nikita Bobko
2021-08-23 17:38 ` Elijah Newren
2021-08-23 18:53 ` Jeff King
2021-08-23 19:10   ` Nikita Bobko
2021-08-23 19:23     ` Elijah Newren
2021-08-23 19:27     ` Junio C Hamano
2021-08-23 19:38       ` Nikita Bobko

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).