From: Morten Welinder <mwelinder@gmail•com>
To: GIT Mailing List <git@vger•kernel.org>,
Linus Torvalds <torvalds@osdl•org>
Subject: "git-checkout-cache -f -a" failure
Date: Mon, 9 May 2005 14:25:29 -0400 [thread overview]
Message-ID: <118833cc05050911255e601fc@mail.gmail.com> (raw)
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 reply other threads:[~2005-05-09 18:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 18:25 Morten Welinder [this message]
2005-05-10 2:29 ` "git-checkout-cache -f -a" failure Junio C Hamano
2005-05-10 3:04 ` Morten Welinder
2005-05-10 22:57 ` Junio C Hamano
2005-05-10 23:03 ` Petr Baudis
2005-05-11 5:16 ` Junio C Hamano
2005-05-11 18:31 ` Morten Welinder
2005-05-11 21:37 ` Junio C Hamano
2005-05-11 22:12 ` Junio C Hamano
2005-05-11 22:40 ` Test suite Petr Baudis
2005-05-12 0:01 ` [PATCH] " Junio C Hamano
2005-05-12 19:29 ` Petr Baudis
2005-05-12 19:48 ` Junio C Hamano
2005-05-12 23:51 ` [PATCH] Fix git-diff-files for symlinks Junio C Hamano
2005-05-13 0:14 ` [PATCH 0/3] Core GIT fixes and additions Junio C Hamano
2005-05-12 0:02 ` [PATCH] checkout-cache fix Junio C Hamano
2005-05-12 19:38 ` Petr Baudis
2005-05-12 19:54 ` Junio C Hamano
2005-05-11 2:53 ` "git-checkout-cache -f -a" failure Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=118833cc05050911255e601fc@mail.gmail.com \
--to=mwelinder@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=torvalds@osdl$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox