* unable to index file UsrClass.dat
@ 2012-06-18 10:09 Grant Zhao
2012-06-18 13:11 ` Ben Walton
2012-06-18 13:49 ` Carlos Martín Nieto
0 siblings, 2 replies; 3+ messages in thread
From: Grant Zhao @ 2012-06-18 10:09 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
I used "git add .",but "fatal: adding files failed".
because
error: open("Local Settings/Application Data/Microsoft/Windows/UsrClass.dat"): P
ermission denied
I cannot open the file "UsrClass.dat",I use Windows XP Profesional
Sp3, please tell me why!
thank you!
Grant
[-- Attachment #2: AddingFilesFailed20120618-2.txt --]
[-- Type: text/plain, Size: 753 bytes --]
Welcome to msysGit
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
Run '/share/msysGit/add-shortcut.tcl' to add a shortcut to msysGit.
Administrator@TITIAN12508391 ~/Documents and Settings/Monica (master)
$ git init
Reinitialized existing Git repository in C:/Documents and Settings/Monica/.git/
Administrator@TITIAN12508391 ~/Documents and Settings/Monica (master)
$ git add .
error: open("Local Settings/Application Data/Microsoft/Windows/UsrClass.dat"): P
ermission denied
error: unable to index file Local Settings/Application Data/Microsoft/Windows/Us
rClass.dat
fatal: adding files failed
Administrator@TITIAN12508391 ~/Documents and Settings/Monica (master)
$
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unable to index file UsrClass.dat
2012-06-18 10:09 unable to index file UsrClass.dat Grant Zhao
@ 2012-06-18 13:11 ` Ben Walton
2012-06-18 13:49 ` Carlos Martín Nieto
1 sibling, 0 replies; 3+ messages in thread
From: Ben Walton @ 2012-06-18 13:11 UTC (permalink / raw)
To: Grant Zhao; +Cc: git
Excerpts from Grant Zhao's message of Mon Jun 18 06:09:08 -0400 2012:
Hi Grant,
> I cannot open the file "UsrClass.dat",I use Windows XP Profesional
> Sp3, please tell me why!
Because windows has this file open and locked. The locking model
prevents concurrent access. The only time you could add that file to
git would be when you're logged out and doing it as another user[1].
Thanks
-Ben
[1] Or have tricks that can read inside a shadow copy but that's a
whole can of worms I won't get in to.
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unable to index file UsrClass.dat
2012-06-18 10:09 unable to index file UsrClass.dat Grant Zhao
2012-06-18 13:11 ` Ben Walton
@ 2012-06-18 13:49 ` Carlos Martín Nieto
1 sibling, 0 replies; 3+ messages in thread
From: Carlos Martín Nieto @ 2012-06-18 13:49 UTC (permalink / raw)
To: Grant Zhao; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 654 bytes --]
On Mon, 2012-06-18 at 03:09 -0700, Grant Zhao wrote:
> I used "git add .",but "fatal: adding files failed".
> because
>
> error: open("Local Settings/Application Data/Microsoft/Windows/UsrClass.dat"): P
> ermission denied
>
> I cannot open the file "UsrClass.dat",I use Windows XP Profesional
> Sp3, please tell me why!
Did you miss the part where is says "Permission denied"? You even quoted
it in the e-mail.
As to why you don't have permission to read the file, that shouldn't be
related to git at all. It looks like you're trying to read someone
else's data, which would certainly account for the lack of permissions.
cmn
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-18 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 10:09 unable to index file UsrClass.dat Grant Zhao
2012-06-18 13:11 ` Ben Walton
2012-06-18 13:49 ` Carlos Martín Nieto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).