On Mon, Jan 21, 2013 at 01:13:37PM -0800, Donald Blodgett wrote:

> I am on Windows 7 and every time I switch to a branch that does not have 
> the same directory structure as the branch I was in I get permission denied 
> errors when ever I attempt to then do a pull, merge, or commit. If I 
> attempt to access the directory through other means I get the same error 
> message, so it is probably something to do with Windows. Unfortunately this 
> only occurs when I switch branches with Git. If I restart the system the 
> directory is removed and I can continue, although this is a major drain 
> on productivity  Is there another way to correct this issue or preferably 
> avoid it altogether?

Do you have any sort of IDE or a similar piece of software running while
switching branches?  Windows filesystem semantics are such that if a
process has a directory as its current directory, Windows will prevent
all sorts of manipulations upon that directory, and various IDEs are
known to change their working drectory when, say, opening files through
the standard "Open file" dialog etc...

In either case, specific questions like this should be directed to the
mailing list dedicated to the development of Git for Windows [1], and
you should include your version of Git as well as platform architecture.
Capture (textual) of actual error messages is also a must.

1. http://groups.google.com/group/msysgit


Reply via email to