diff options
author | Michael G. Schwern <schwern@pobox.com> | 2012-07-28 02:47:49 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-08-02 21:46:02 +0000 |
commit | 8266fc8be19ef1405d4ef175bb0e75ebc2730f5d (patch) | |
tree | 7237da943bbcbe5cbeda23123fb72a66202342b9 /git-svn.perl | |
parent | 9c27a57b2da502b7dd3736013b7a185fb6e5064e (diff) | |
download | git-8266fc8be19ef1405d4ef175bb0e75ebc2730f5d.tar.gz |
git-svn: canonicalize earlier
Just a few things I noticed. Its good to canonicalize as early as
possible.
[ew: commit title]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-svn.perl b/git-svn.perl index 6e975457f9..6b9076599b 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1436,16 +1436,16 @@ sub cmd_info { # canonicalize_path() will return "" to make libsvn 1.5.x happy, $path = "." if $path eq ""; - my $full_url = $url . ($fullpath eq "" ? "" : "/$fullpath"); + my $full_url = canonicalize_url( $url . ($fullpath eq "" ? "" : "/$fullpath") ); if ($_url) { - print canonicalize_url($full_url), "\n"; + print "$full_url\n"; return; } my $result = "Path: $path\n"; $result .= "Name: " . basename($path) . "\n" if $file_type ne "dir"; - $result .= "URL: " . canonicalize_url($full_url) . "\n"; + $result .= "URL: $full_url\n"; eval { my $repos_root = $gs->repos_root; |