From 107cee507884dc9b3c5d3759e8e50c9c47e2ddcd Mon Sep 17 00:00:00 2001 From: Dmitry Potapov Date: Mon, 21 Jul 2008 00:14:07 +0400 Subject: 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 28aeb03..2e0e552 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) || ""; -- cgit v0.10.2-6-g49f6