Skip to content

Commit a0f5a0c

Browse files
Eric Wonggitster
authored andcommitted
git-svn: allow "0" in SVN path components
Blindly checking a path component for falsiness is unwise, as "0" is false to Perl, but a valid pathname component for SVN (or any filesystem). Found via random code reading. Signed-off-by: Eric Wong <[email protected]>
1 parent a274e0a commit a0f5a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/Git/SVN/Ra.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ sub minimize_url {
606606
my $latest = $ra->get_latest_revnum;
607607
$ra->get_log("", $latest, 0, 1, 0, 1, sub {});
608608
};
609-
} while ($@ && ($c = shift @components));
609+
} while ($@ && defined($c = shift @components));
610610

611611
return canonicalize_url($url);
612612
}

0 commit comments

Comments
 (0)