Re: [git-users] git clone fails with unable to overwrite old ref-pack file

2012-08-08 Thread Konstantin Khomoutov
On Tue, 7 Aug 2012 18:24:48 -0700 (PDT)
Lisa Zorn lisa.z...@sfcta.org wrote:

(CC'ing the msysgit mailing list, I suspect the discussion does really
belong there, so possibly please cull git-users from the CC list when
replying.)

 I have been using git for years and have not run into this problem
 before. I tried to git clone a repo that's on a local drive, and I
 get this error: dir1\dir2git clone -b master Y:\git_src
 Cloning into 'Muni_GenevaBRT_HuntersPtToCandlestickInterchangeOnly'...
 done.
 fatal: unable to overwrite old ref-pack file: Permission denied
 fatal: The remote end hung up unexpectedly
 
 However, when I run it in another directory (not a subdir of dir1),
 it works fine.  But it's repeatable; if I run it from dir1\dirX it
 happens again.
 I am using the stable version of git, and I'm on windows.  What's
 going on with the old ref-pack file?

Are you sure that the combination of dir1\dir2 and that Muni_...
thing does not exceed the limit of 260 or so characters?

This has been discussed recently: [1], [2].

I would try to debug this situation by monitoring which files are acce
ssed by Git tools using Process Monitor [3] (ex. FileMon) -- you could
filter its output by failed attempts to create/open files.

1. https://github.com/msysgit/msysgit/issues/52
2. http://thread.gmane.org/gmane.comp.version-control.msysgit/14572
3. http://technet.microsoft.com/en-us/sysinternals/bb896645

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] git clone fails with unable to overwrite old ref-pack file

2012-08-07 Thread Wes Freeman
Check your permissions on dir1, and make sure it's not set as read-only or
something.

Wes

On Tue, Aug 7, 2012 at 9:24 PM, Lisa Zorn lisa.z...@sfcta.org wrote:

 Hello,
 I have been using git for years and have not run into this problem before.
  I tried to git clone a repo that's on a local drive, and I get this error:
 dir1\dir2git clone -b master Y:\git_src
 Cloning into 'Muni_GenevaBRT_HuntersPtToCandlestickInterchangeOnly'...
 done.
 fatal: unable to overwrite old ref-pack file: Permission denied
 fatal: The remote end hung up unexpectedly

 However, when I run it in another directory (not a subdir of dir1), it
 works fine.  But it's repeatable; if I run it from dir1\dirX it happens
 again.
 I am using the stable version of git, and I'm on windows.  What's going on
 with the old ref-pack file?

 Thanks!
 -Lisa

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/git-users/-/plrGfYp4gNkJ.
 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] git clone fails with unable to overwrite old ref-pack file

2012-08-07 Thread Lisa Zorn
Thanks, I tried making sure I set things to not RO but I'll try more 
(windows permissions are confusing, I am never sure if I'm succeeding with 
things using the UI).
The other thing is that before this, we git clone many other things into dir2 
and they all work fine, but this one fails.
And it's re-producable; if I delete dir2 and start over, the same thing 
happens on the same git_src (ok clearly that's Muni_GenevaBRT_
HuntersPtToCandlestickInterchangeOnly but I was trying to simplify my email)
 after succeeding with other git clones before that).
-Lisa

On Tuesday, August 7, 2012 6:37:34 PM UTC-7, Wes Freeman wrote:

 Check your permissions on dir1, and make sure it's not set as read-only or 
 something.

 Wes

 On Tue, Aug 7, 2012 at 9:24 PM, Lisa Zorn lisa...@sfcta.org javascript:
  wrote:

 Hello,
 I have been using git for years and have not run into this problem 
 before.  I tried to git clone a repo that's on a local drive, and I get 
 this error:
 dir1\dir2git clone -b master Y:\git_src
 Cloning into 'Muni_GenevaBRT_HuntersPtToCandlestickInterchangeOnly'...
 done.
 fatal: unable to overwrite old ref-pack file: Permission denied
 fatal: The remote end hung up unexpectedly

 However, when I run it in another directory (not a subdir of dir1), it 
 works fine.  But it's repeatable; if I run it from dir1\dirX it happens 
 again.
 I am using the stable version of git, and I'm on windows.  What's going 
 on with the old ref-pack file?

 Thanks!
 -Lisa

 -- 
 You received this message because you are subscribed to the Google Groups 
 Git for human beings group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/git-users/-/plrGfYp4gNkJ.
 To post to this group, send email to git-...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 git-users+...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/git-users?hl=en.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/MCq1e6ocdQMJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] git clone fails with unable to overwrite old ref-pack file

2012-08-07 Thread Wes Freeman
I agree, windows permissions are annoying. Actually it might be a
permission within the git_src folder getting copied down. Have you looked
at that?

Wes

On Tue, Aug 7, 2012 at 9:43 PM, Lisa Zorn lisa.z...@sfcta.org wrote:

 Thanks, I tried making sure I set things to not RO but I'll try more
 (windows permissions are confusing, I am never sure if I'm succeeding with
 things using the UI).
 The other thing is that before this, we git clone many other things into dir2
 and they all work fine, but this one fails.
 And it's re-producable; if I delete dir2 and start over, the same thing
 happens on the same git_src (ok clearly that's Muni_GenevaBRT_**
 HuntersPtToCandlestickIntercha**ngeOnly but I was trying to simplify my
 email) after succeeding with other git clones before that).
 -Lisa


 On Tuesday, August 7, 2012 6:37:34 PM UTC-7, Wes Freeman wrote:

 Check your permissions on dir1, and make sure it's not set as read-only
 or something.

 Wes

 On Tue, Aug 7, 2012 at 9:24 PM, Lisa Zorn lisa...@sfcta.org wrote:

 Hello,
 I have been using git for years and have not run into this problem
 before.  I tried to git clone a repo that's on a local drive, and I get
 this error:
 dir1\dir2git clone -b master Y:\git_src
 Cloning into 'Muni_GenevaBRT_**HuntersPtToCandlestickIntercha**
 ngeOnly'...
 done.
 fatal: unable to overwrite old ref-pack file: Permission denied
 fatal: The remote end hung up unexpectedly

 However, when I run it in another directory (not a subdir of dir1), it
 works fine.  But it's repeatable; if I run it from dir1\dirX it happens
 again.
 I am using the stable version of git, and I'm on windows.  What's going
 on with the old ref-pack file?

 Thanks!
 -Lisa

 --
 You received this message because you are subscribed to the Google
 Groups Git for human beings group.
 To view this discussion on the web visit https://groups.google.com/d/**
 msg/git-users/-/plrGfYp4gNkJhttps://groups.google.com/d/msg/git-users/-/plrGfYp4gNkJ
 .
 To post to this group, send email to git-...@googlegroups.com.
 To unsubscribe from this group, send email to git-users+...@**
 googlegroups.com.

 For more options, visit this group at http://groups.google.com/**
 group/git-users?hl=en http://groups.google.com/group/git-users?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/git-users/-/MCq1e6ocdQMJ.

 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/git-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.