Browse Source

git-svn: req_svn when needed

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>
Acked-by: Eric Wong <normalperson@yhbt.net>
maint
Michael J Gruber 15 years ago committed by Eric Wong
parent
commit
b91a8a3ee1
  1. 1
      git-svn.perl

1
git-svn.perl

@ -1102,6 +1102,7 @@ sub cmd_info { @@ -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";

Loading…
Cancel
Save