summaryrefslogtreecommitdiff
path: root/contrib/git-svn
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-02-16 19:47:51 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-17 09:01:20 (GMT)
commit1c6bbbf37be5c2b0fce45a57ecfeea2d9b7a3269 (patch)
tree96e21721f7ab44fc17df8da42fe11f5276e16cbe /contrib/git-svn
parent3397f9df53092871de2c33c143f1f4413654c40d (diff)
downloadgit-1c6bbbf37be5c2b0fce45a57ecfeea2d9b7a3269.zip
git-1c6bbbf37be5c2b0fce45a57ecfeea2d9b7a3269.tar.gz
git-1c6bbbf37be5c2b0fce45a57ecfeea2d9b7a3269.tar.bz2
git-svn: fix revision order when XML::Simple is not loaded
Thanks to Emmanuel Guerin for finding the bug. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/git-svn')
-rwxr-xr-xcontrib/git-svn/git-svn6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/git-svn/git-svn b/contrib/git-svn/git-svn
index 62fc14f..ddd9579 100755
--- a/contrib/git-svn/git-svn
+++ b/contrib/git-svn/git-svn
@@ -523,7 +523,7 @@ sub svn_log_raw {
# if we have an empty log message, put something there:
if (@svn_log) {
- $svn_log[0]->{msg} ||= "\n";
+ $svn_log[$#svn_log]->{msg} ||= "\n";
}
next;
}
@@ -538,7 +538,7 @@ sub svn_log_raw {
date => "$tz $Y-$m-$d $H:$M:$S",
author => $author,
msg => '' );
- unshift @svn_log, \%log_msg;
+ push @svn_log, \%log_msg;
$state = 'msg_start';
next;
}
@@ -546,7 +546,7 @@ sub svn_log_raw {
if ($state eq 'msg_start' && /^$/) {
$state = 'msg';
} elsif ($state eq 'msg') {
- $svn_log[0]->{msg} .= $_."\n";
+ $svn_log[$#svn_log]->{msg} .= $_."\n";
}
}
close $log_fh or croak $?;