summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorDmitry Potapov <dpotapov@gmail.com>2008-07-20 20:14:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-20 22:16:50 (GMT)
commit107cee507884dc9b3c5d3759e8e50c9c47e2ddcd (patch)
treee385736fc679e03c488ab3f7d16f73b80419d7da /git-svn.perl
parentc29c1b406eb6edd30c4a7dc11e91370e497e6a5d (diff)
downloadgit-107cee507884dc9b3c5d3759e8e50c9c47e2ddcd.zip
git-107cee507884dc9b3c5d3759e8e50c9c47e2ddcd.tar.gz
git-107cee507884dc9b3c5d3759e8e50c9c47e2ddcd.tar.bz2
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-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
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) || "";