]> Pileus Git - ~andy/git/commitdiff
git-svn: fix a regression in dcommit that caused empty log messages
authorEric Wong <normalperson@yhbt.net>
Fri, 19 Jan 2007 02:15:23 +0000 (18:15 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 08:57:09 +0000 (00:57 -0800)
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index 9d50d305c178aab6bfe0ccd4491451aa964fc012..b5a4cb05a6d068034a539c4d7ac9bc24691bcb4a 100755 (executable)
@@ -339,13 +339,14 @@ sub cmd_dcommit {
                if ($_dry_run) {
                        print "diff-tree $d~1 $d\n";
                } else {
+                       my $log = get_commit_entry($d)->{log};
                        my $ra = $gs->ra;
                        my $pool = SVN::Pool->new;
                        my %ed_opts = ( r => $last_rev,
                                        ra => $ra->dup,
                                        svn_path => $ra->{svn_path} );
                        my $ed = SVN::Git::Editor->new(\%ed_opts,
-                                        $ra->get_commit_editor($::_message,
+                                        $ra->get_commit_editor($log,
                                         sub { print "Committed r$_[0]\n";
                                               $last_rev = $_[0]; }),
                                         $pool);