From: "P. Christeas" Subject: [PATCH] Fix git-svnimport against libsvn_ra. Date: Wed, 23 Jul 2008 10:10:28 +0300 Message-ID: <200807231008.39455.p_christ@hol.gr> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Gerrit Pape To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jul 23 09:18:45 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KLYcO-0006v7-2N for gcvg-git-2@gmane.org; Wed, 23 Jul 2008 09:18:36 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750983AbYGWHRg (ORCPT ); Wed, 23 Jul 2008 03:17:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750831AbYGWHRg (ORCPT ); Wed, 23 Jul 2008 03:17:36 -0400 Received: from outgoing.holservices.gr ([62.38.2.44]:50102 "HELO outgoing.holservices.gr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750793AbYGWHRf (ORCPT ); Wed, 23 Jul 2008 03:17:35 -0400 Received: (qmail 10965 invoked from network); 23 Jul 2008 03:37:16 -0000 Received: from unknown (HELO deliver.mail.dc.hol.net) (192.168.20.70) by arete.mail.dc.hol.net with SMTP; 23 Jul 2008 03:37:16 -0000 Received: from auth-smtp.hol.gr (takeit01.mail.dc.hol.net [192.168.20.71]) by deliver.hol.gr (8.12.11/8.11.6) with ESMTP id m6N79sng017745 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256 bits) verified OK); Wed, 23 Jul 2008 10:09:54 +0300 Received: from pfn1.pefnos (ppp079166029101.dsl.hol.gr [79.166.29.101]) by auth-smtp.hol.gr (8.13.1/8.13.1) with ESMTP id m6N79r54008122; Wed, 23 Jul 2008 10:09:53 +0300 Received: from xorhgos2 (cpe-77-83-154-127-dsl.netone.gr [77.83.154.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pfn1.pefnos (Postfix) with ESMTP id 83B52FB0A; Wed, 23 Jul 2008 10:09:53 +0300 (EEST) Content-Disposition: inline X-Virus-Scanned: ClamAV 0.93/7599/Tue Jul 1 14:10:31 2008 on takeit01.mail.dc.hol.net X-Virus-Status: Clean Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: In r27729, libsvn introduced an assert which explicitly forbids searching the tree at "/". Luckily enough, it still accepts an empty string "" as the starting point. http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_ra/ra_loader.c?r1=27653&r2=27729 --- contrib/examples/git-svnimport.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/examples/git-svnimport.perl b/contrib/examples/git-svnimport.perl index ea8c1b2..a13bb6a 100755 --- a/contrib/examples/git-svnimport.perl +++ b/contrib/examples/git-svnimport.perl @@ -933,7 +933,7 @@ while ($to_rev < $opt_l) { $to_rev = $from_rev + $repack_after; $to_rev = $opt_l if $opt_l < $to_rev; print "Fetching from $from_rev to $to_rev ...\n" if $opt_v; - $svn->{'svn'}->get_log("/",$from_rev,$to_rev,0,1,1,\&commit_all); + $svn->{'svn'}->get_log("",$from_rev,$to_rev,0,1,1,\&commit_all); my $pid = fork(); die "Fork: $!\n" unless defined $pid; unless($pid) { -- 1.5.6