]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-svn.perl
Merge git://git.kernel.org/pub/scm/gitk/gitk
[git.git] / git-svn.perl
index cc35f5046fd07edfffca07b3e01cadf846d63db2..df0ed9027df2c3b8b8f9d7f4f4046f3a0b1ae7f1 100755 (executable)
@@ -796,8 +796,8 @@ sub cmd_commit_diff {
 }
 
 sub cmd_info {
-       my $path = canonicalize_path(shift or ".");
-       unless (scalar(@_) == 0) {
+       my $path = canonicalize_path(defined($_[0]) ? $_[0] : ".");
+       if (exists $_[1]) {
                die "Too many arguments specified\n";
        }
 
@@ -813,6 +813,10 @@ sub cmd_info {
                die "Unable to determine upstream SVN information from ",
                    "working tree history\n";
        }
+
+       # canonicalize_path() will return "" to make libsvn 1.5.x happy,
+       $path = "." if $path eq "";
+
        my $full_url = $url . ($path eq "." ? "" : "/$path");
 
        if ($_url) {