summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c29c1b4)
raw | patch | inline | side by side (parent: c29c1b4)
author | Dmitry Potapov <dpotapov@gmail.com> | |
Sun, 20 Jul 2008 20:14:07 +0000 (00:14 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 20 Jul 2008 22:16:50 +0000 (15:16 -0700) |
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>
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>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 28aeb03fdcb65d8b63851cc92e74327b3325d8b8..2e0e55242ff089cda3c87ae57f7c776c13508a56 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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) || "";