threads / discuss / 14829

[git/perl/cygwin] Permission denied at /usr/bin/git-svn line 2339

Subject: [git/perl/cygwin] Permission denied at /usr/bin/git-svn line 2339

## tl;dr

One message between Aug 4, 2008 and Aug 4, 2008.

replies: 0people: 1as markdown or json

Ray Chuan· Aug 4, 2008, 05:16 UTC · lore
Hi,

i'm encountering an issue with git-svn running on cygwin (not sure if this is exclusive to cygwin) when migrating data from svn to git.

$ git-svn clone file:///F:/test/svn-native-repo/
Initialized empty Git repository in /cygdrive/F/test/git/svn-native-repo/.git/
       A       sitemap.html
       A       funcs.js
       A       index.html
       A       styles.css
r1 = d112a5b470fd4387c7bbb7199d0d7a065754b127 (git-svn)
Permission denied: Can't open
'/cygdrive/c/DOCUME~1/myself/LOCALS~1/Temp/report.tmp': Permission
denied at /usr/bin/git-svn line 2339

the repo used was a dummy subversion repo with 2 revisions: an add, and a modification commit. (dump file here [1])

i suspect this is caused by locks over files. using perl -d:

$ perl -d /usr/bin/git-svn clone file:///F:/test/svn-native-repo/ c 3995 c 3995 c 3838 s c 85

SVN::Ra::AUTOLOAD(/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/SVN/Ra.pm:85): 85: my @ret = $func->($self->{session}, @_);

immediately after this line the error is generated.

a fix would be to issue closes to the processes, as in Git::_close_hash_and_insert_object and Git::_close_cat_blob:

767a768
>       $self->_close_hash_and_insert_object();
856a858
>       $self->_close_cat_blob();

(Note: currently this doesn't fix the issue too, cos the methods do not do their job properly (on my side, at least): see

http://article.gmane.org/gmane.comp.version-control.git/91314 )

my environment is:
- win xp home sp2
- Cygwin: 1.5.25-15 (latest)
- Git: 1.5.6.4-1 (latest)
- subversion-perl: 1.4.6-3 (latest)
- Perl: 5.10.0-5 (latest)
[1] http://thelilaeanbellis.com/shared/svn-native-repo.dump

← back to recent threads