Re: git add / update-cache --add fails.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 26, 2005, 00:47 UTC
- Message-ID
- <Pine.LNX.4.58.0504251741430.18901@ppc970.osdl.org>
- In-Reply-To
- <200504252252.05957.rhys@rhyshardwick.co.uk>
On Mon, 25 Apr 2005, Rhys Hardwick wrote:
Show 6 quoted lines
> > Just to clarify, the latest version of git to be merged with pasky is: > > 4e03aae5feb2e3fd2f543796ca3d3e8aa86c02dc > > I have tried rebooting
[ somebody has been using windows for too long ;]
Just do an "strace update-cache --add xxxxx", that often gives a clue. Also, "ltrace" is a wonderful tool at times.
update-cache will be unhappy if the file is unreadable, for example. But it will also be unhappy if it cannot create the sha1 hashed object file, which can happen if the permissions on the object directories are screwed up or similar.
I think these things should generally show up as a sore thumb in an strace.
Linus