@matheusbsbs / matheus-bagliano / commits / 107cee5078
Fork 0

git-svn: fix git svn info to work without arguments

commit 2fe403e7452bd6e1e8232445cf5434ce8f1af973 broke "git-svn info ." due to replacing '.' with '' in canonicalize_path for the top directory, while find_file_type_and_diff_status was not corrected. Bug reports: http://thread.gmane.org/gmane.comp.version-control.git/87822/ http://bugs.debian.org/490400 Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dmitry Potapov committed Jul 21, 2008 at 00:14 UTC 107cee507884dc9b3c5d3759e8e50c9c47e2ddcd
1 file changed +1 -1
git-svn.perl
+1 -1
@@ -1226,7 +1226,7 @@ sub linearize_history {
1226
1227 sub find_file_type_and_diff_status {
1228 my ($path) = @_;
1229 - return ('dir', '') if $path eq '.';
1229 + return ('dir', '') if $path eq '';
1230
1231 my $diff_output =
1232 command_oneline(qw(diff --cached --name-status --), $path) || "";