www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/23/18:24:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <db95995b0911230314s5a751de0y59fad64a78dbc5e0@mail.gmail.com>
References: <db95995b0911222020l291b023dw1bea3db6f179333f AT mail DOT gmail DOT com> <4B0A0EDC DOT 1040604 AT byu DOT net> <db95995b0911230314s5a751de0y59fad64a78dbc5e0 AT mail DOT gmail DOT com>
Date: Tue, 24 Nov 2009 12:24:44 +1300
Message-ID: <db95995b0911231524o3996ab95u532b8f8ca6df6105@mail.gmail.com>
Subject: Re: [1.7] git checkout or clean fails to unlink submodule
From: David Antliff <david DOT antliff AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 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? The fact that it doesn't delete the directory is OK
with me, and is certainly not a Cygwin issue.

However I note that the 'build' directory is still not removed by 'git
clean -fdx' so it looks like that is a real-git problem, not a
Cygwin-git problem.

I tried the same thing with the latest "release" tagged version of
git, 1.6.5.3, on Linux and it behaves the same way as 1.6.4.2.

So as this thread was really triggered by the ominous "Operation not
permitted" warning, I'm not sure there's a Cygwin issue here, except
perhaps that warning could be the same as the Linux warning - "Is a
directory" - instead? Perhaps this message comes from the Cygwin "OS"
in which case it might not be fixable in git.

-- David.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019