From: Linus Torvalds Date: Tue, 26 Apr 2005 00:47:23 GMT Subject: Re: git add / update-cache --add fails. Message-ID: In-Reply-To: <200504252252.05957.rhys@rhyshardwick.co.uk> On Mon, 25 Apr 2005, Rhys Hardwick wrote: > > 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