git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"git-checkout-cache -f -a" failure

From
MWMorten Welinder <mwelinder@gmail.com>
Date
May 9, 2005, 18:25 UTC
Message-ID
<118833cc05050911255e601fc@mail.gmail.com>

git-checkout-cache is having problems when files change from directories to plain files or vice versa. cg-seek seems to be similarly affected.

Note also, that git-checkout-cache's error messages haven't caught up with the command renaming.

Morten

cd /tmp mkdir xxx cd xxx rm -rf .git empty yyy touch empty cg-init </dev/null cg-tag initial mkdir yyy touch yyy/zzz cg-add yyy/zzz cg-commit </dev/null cg-tag dir rm -rf empty yyy rm -f .git/HEAD cat .git/refs/tags/initial > .git/HEAD git-read-tree -m HEAD git-checkout-cache -f -a touch yyy cg-add yyy cg-commit </dev/null cg-tag file # Got that?

# yyy is a file right now. git-read-tree `cat .git/refs/tags/dir` git-checkout-cache -f -a # error: checkout-cache: unable to create file yyy/zzz (Not a directory) # Not good!

rm -rf empty yyy git-read-tree `cat .git/refs/tags/dir` git-checkout-cache -f -a

# yyy is a directory right now git-read-tree `cat .git/refs/tags/file` git-checkout-cache -f -a # error: checkout-cache: unable to create file yyy (Is a directory) # Not good!

Next: Junio C Hamano
Message 1 of 19 in “"git-checkout-cache -f -a" failure”
  1. Morten WelinderMay 9, 2005
  2. Junio C HamanoMay 10, 2005
  3. Morten WelinderMay 10, 2005
  4. Junio C HamanoMay 10, 2005
  5. Petr BaudisMay 10, 2005
  6. Junio C HamanoMay 11, 2005
  7. Morten WelinderMay 11, 2005
  8. Junio C HamanoMay 11, 2005
  9. Junio C HamanoMay 11, 2005
  10. Test suitePetr Baudis, May 11, 2005
  11. Test suiteJunio C Hamano, May 12, 2005
  12. Petr BaudisMay 12, 2005
  13. Junio C HamanoMay 12, 2005
  14. Fix git-diff-files for symlinks.Junio C Hamano, May 12, 2005
  15. 0/3 Core GIT fixes and additions.Junio C Hamano, May 13, 2005
  16. checkout-cache fixJunio C Hamano, May 12, 2005
  17. Petr BaudisMay 12, 2005
  18. Junio C HamanoMay 12, 2005
  19. Junio C HamanoMay 11, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.