@matheusbsbs / matheus-bagliano / commits / ce91fc6eb9
Fork 0

git-svn: fix commits over svn+ssh://

Once a get_commit_editor has been called from an SVN session, RA layer operations are not allowed (well, unless you're using file:// or http(s)://). So we'll pass an alternate SVN::Ra object to our editor object for running 'check-path'. This should fix commits over svnserve (svn:// without ssh, too). Closes Debian bug #392702, thanks to Pierre Habouzit for reporting the bug. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric Wong committed Oct 14, 2006 at 02:02 UTC ce91fc6eb9c4aefc73f845fc7104f332b2b308d2
1 file changed +2 -2
git-svn.perl
+2 -2
@@ -536,7 +536,7 @@ sub commit_lib {
536 $SVN = libsvn_connect($repo);
537 my $ed = SVN::Git::Editor->new(
538 { r => $r_last,
539 - ra => $SVN,
539 + ra => $SVN_LOG,
540 c => $c,
541 svn_path => $SVN_PATH
542 },
@@ -832,7 +832,7 @@ sub commit_diff {
832 $SVN ||= libsvn_connect($repo);
833 my @lock = $SVN::Core::VERSION ge '1.2.0' ? (undef, 0) : ();
834 my $ed = SVN::Git::Editor->new({ r => $SVN->get_latest_revnum,
835 - ra => $SVN, c => $tb,
835 + ra => $SVN_LOG, c => $tb,
836 svn_path => $SVN_PATH
837 },
838 $SVN->get_commit_editor($_message,