diff options
author | Dmitry Potapov <dpotapov@gmail.com> | 2008-07-21 00:14:07 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-20 15:16:50 -0700 |
commit | 107cee507884dc9b3c5d3759e8e50c9c47e2ddcd (patch) | |
tree | e385736fc679e03c488ab3f7d16f73b80419d7da /git-svn.perl | |
parent | c29c1b406eb6edd30c4a7dc11e91370e497e6a5d (diff) | |
download | git-107cee507884dc9b3c5d3759e8e50c9c47e2ddcd.tar.gz git-107cee507884dc9b3c5d3759e8e50c9c47e2ddcd.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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) || ""; |