Hi, your test script is slightly wrong... First you "git init", with GIT_DIR in $(pwd)/.git, i.e. the default. But then, you need not do this, test scripts are called when git init was already called. Then you make an untracked directory called untracked/. Tradition dictates that when we're in that directory, we get the prefix "untracked/", because we might add a file, or reference a file in another branch, where that directory is _not_ untracked. So it is expected that checkout-index and ls-files behave differently in a subdirectory (even if that is currently untracked). It seems a bit counterintuitive that read-tree succeeds, but really, read-tree is only a commit -> index operation, which should not care about the current prefix. So it is fine. Checkout-index, instead, is an index -> working tree operation, and for most of these, we care about the current prefix (so that you can say git checkout-index file1, where file1 is in the current directory, which is _not_ the working tree root). Ciao, Dscho - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
