X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 24 Nov 2009 09:41:27 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [1.7] git checkout or clean fails to unlink submodule Message-ID: <20091124084127.GP29173@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4B0A0EDC DOT 1040604 AT byu DOT net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Nov 24 12:24, David Antliff wrote: > > On Mon, Nov 23, 2009 at 17:26, Eric Blake wrote: > >> According to David Antliff on 11/22/2009 9:20 PM: > >>> Any suggestions how to investigate this further? Is there some way > >>> that Windows or Cygwin is somehow preventing the deletion of this > >>> directory? > >> > >> More likely, this is due to the fact that git submodule is still an > >> interface in progress, and this is likely to be an upstream limitation. > >> I'd see if you can reproduce it on Linux, and if so, report it upstream. > >> Which reminds me, I need to package a newer version of git soon. > > I've built git-1.6.4.2 from source on Linux (Ubuntu 8.04.3) and tried > the same test case. In this situation I get the following warning: > > $ git checkout -f master > warning: unable to unlink build: Is a directory > > This seems like a much more sensible warning message than "Operation > not permitted" on Cygwin - perhaps there's something that can be > improved there? POSIX-1.2008 requires that the unlink(2) function returns EPERM ("Operation not permitted") if you try to unlink a directory and the implementation doesn't allow this. Linux is deliberately deviating from POSIX by returning EISDIR. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple