This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[1.7] git checkout or clean fails to unlink submodule

I've noticed that git- in Cygwin-1.7 exhibits some unusual
behaviour and although I don't know if it's a Cygwin issue. I really
don't have a way to check, so I'll simply report it here.

I've compared this behaviour with git- from Cygwin-1.5, and it
does not occur, so it's new behaviour in git-

The problem concerns sub-modules. With git-, when using 'git
checkout' to move away from a branch that has a submodule ("build")
associated to a branch that does not have that submodule associated, I
get the following warning message:

 $ git checkout -f master
warning: unable to unlink build: Operation not permitted

The concerned directory remains undeleted. I note with the older git
that it also doesn't remove the directory, but no warning is

But what is concerning is that a subsequent 'git clean -fdx' does not
remove the submodule directory either. With git- the directory
would be deleted by:

$ git clean -fdx

But with it instead says:

$ git clean -fdx
Removing build
$ ls -l
drwxr-x---+ 1 dantliff Domain Users   0 2009-11-23 17:01 build

The 'build' directory is untracked so 'git clean -d' should remove it,
but it doesn't.

Any suggestions how to investigate this further? Is there some way
that Windows or Cygwin is somehow preventing the deletion of this
directory? Note that I do not have any other processes accessing this
directory or any files within the directory, and I have a file locking
application (Unlocker Assistant) that seems to confirm this.

-- David.

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]