From: Alex Riesen Date: Wed, 05 Oct 2005 19:17:41 GMT Subject: Re: First cut at git port to Cygwin Message-ID: <20051005191741.GA25493@steel.home> In-Reply-To: <20051005155457.GA30303@trixie.casa.cgf.cx> Christopher Faylor, Wed, Oct 05, 2005 17:54:57 +0200: > >Still does not work for me. I cannot isolate the problem out of git, > >but at the moment the only way for me to make commit_index_file to work > >is to put unlink(indexfile) before rename(cf->lockfile, indexfile). > > > >For everyone interested, I attach cygwin's strace output here. > > I'm sorry that I missed this thread. I'm usually pretty alert to the word > "cygwin" showing up in a subject. > > I'll go back and read the archives to catch up but, at the risk of > making an observation that has already been made, under windows you > can't always rename a file that is open. Is that what's happening here? > Don't think so, but will check in about 10 hrs. The code in question is in index.c, commit_index_file.