git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCHv2 1/2] git-svn: req_svn when needed

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 3, 2010, 20:34 UTC
Message-ID
<53df75af0e7fa5a456b326652147840b07f0d53a.1267647872.git.git@drmicha.warpmail.net>
In-Reply-To
<d16ad252f24db9274bc9a5bcab959524eab823ed.1267636051.git.git@drmicha.warpmail.net>

The delayed loading of SVN missed a place where SVN::Core is used. Make sure to load the package before trying to use it.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 git-svn.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index b7c03b6..bae7231 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1102,6 +1102,7 @@ sub cmd_info {
 	if ($@) {
 		$result .= "Repository Root: (offline)\n";
 	}
+	::_req_svn();
 	$result .= "Repository UUID: $uuid\n" unless $diff_status eq "A" &&
 		($SVN::Core::VERSION le '1.5.4' || $file_type ne "dir");
 	$result .= "Revision: " . ($diff_status eq "A" ? 0 : $rev) . "\n";
-- 
1.7.0.1.241.g6604f
Previous: Eric WongNext: Michael J Gruber
Message 4 of 5 in “t9119-git-svn-info.sh: test with svn 1.6.* as well”
  1. t9119-git-svn-info.sh: test with svn 1.6.* as wellMichael J Gruber, Mar 3, 2010
  2. 0/2 Make t9119-git-svn-info.sh run with svn 1.6.*Michael J Gruber, Mar 3, 2010
  3. Eric WongMar 4, 2010
  4. 1/2 git-svn: req_svn when neededMichael J Gruber, Mar 3, 2010
  5. 2/2 t9119-git-svn-info.sh: test with svn 1.6.* as wellMichael J Gruber, Mar 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.