From: Dmitry Potapov Date: Sun, 20 Jul 2008 20:14:07 +0000 (+0400) Subject: git-svn: fix git svn info to work without arguments X-Git-Tag: v1.6.0-rc0~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=107cee507884dc9b3c5d3759e8e50c9c47e2ddcd;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index 28aeb03fd..2e0e55242 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1226,7 +1226,7 @@ sub linearize_history { sub find_file_type_and_diff_status { my ($path) = @_; - return ('dir', '') if $path eq '.'; + return ('dir', '') if $path eq ''; my $diff_output = command_oneline(qw(diff --cached --name-status --), $path) || "";