Discussion:
File ownership and 'cannot stat' on W7
turveysp
14 years ago
Permalink
Using: Git-1.7.4-preview20110204

A couple of times now I've seen an issue where adding a new directory
of files to git in one branch (a) and then switching to a branch where
those files do not yet exist (b) causes the following error when then
switching back to (a) again:

error: cannot stat 'qml/uif/img': Permission denied

Where the uif/* files are the ones that have been added in (a). The
error is issued many times, presumably once for each file in the
directory.

Look at the file ownership in Windows Explorer it seems that some
directory entries end up without an owner and not even an
Administrator user can re-own them once they're in that state. When
this happens I end up having to boot into safe mode and nuking the
entire folder before re-cloning.

Has anyone else seen this issue? I've experienced it on several
machines and colleagues have seen it also.

Simon.
turveysp
14 years ago
Permalink
Raising as a defect then. I'll try and set up a repro scenario.
HH
14 years ago
Permalink
Post by turveysp
Has anyone else seen this issue? I've experienced it on several
machines and colleagues have seen it also.
I'm having similar problems currently as well. This issue is making
development quite hard at the moment, and thus I'd appreciate seeing a
fix/workaround for this as soon as possible. I'm working with Windows
7 and msysgit 1.7.4 preview as well.

I'm able to get rid of the locked directories just via rebooting
Windows and deleting directories normally after that, which might make
this bug even more interesting.


Br,

Harri
c***@gmail.com
14 years ago
Permalink
Having the same issue. Not sure what is causing it, but I find it goes away
after closing Visual Studio. That said, I think the problem is more
complicated than just VS locking files.
Bradley Holbrook
14 years ago
Permalink
Ran into the same issue.
Simply closing the program that edits those files will release them.

Unsure what actually causes this but it seems to be a permissions
issue between the editing problem, the file, and git.
Henrik Gedionsen
12 years ago
Permalink
Having the same issue.  Not sure what is causing it, but I find it goes away
after closing Visual Studio.  That said, I think the problem is more
complicated than just VS locking files.


Same issue here, fixed with IIS reset.
Guess that the website had the folder locked.
--
--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
msysgit+***@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

---
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jon Thor Austen
10 years ago
Permalink
Something similar to this happens to me using "Git for Windows
2.5.0.windows.1" on WIndows 7. The problem ONLY occurs when I have a
scripted "git merge --no-ff BranchName" command that is executed in a "Git
Bash" prompt from a Bash script. Just putting the info here in case it
helps reproduce the issue for someone.
--
--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
msysgit+***@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

---
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...