@matheusbsbs / matheus-bagliano / commits / 780a2f58e7
Fork 0

git-svn: fix a regression in dcommit that caused empty log messages

Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Jan 18, 2007 at 18:15 UTC 780a2f58e727386ae81223d7a5c16fbc55cfd9fa
1 file changed +2 -1
git-svn.perl
+2 -1
@@ -339,13 +339,14 @@ sub cmd_dcommit {
339 if ($_dry_run) {
340 print "diff-tree $d~1 $d\n";
341 } else {
342 + my $log = get_commit_entry($d)->{log};
343 my $ra = $gs->ra;
344 my $pool = SVN::Pool->new;
345 my %ed_opts = ( r => $last_rev,
346 ra => $ra->dup,
347 svn_path => $ra->{svn_path} );
348 my $ed = SVN::Git::Editor->new(\%ed_opts,
348 - $ra->get_commit_editor($::_message,
349 + $ra->get_commit_editor($log,
350 sub { print "Committed r$_[0]\n";
351 $last_rev = $_[0]; }),
352 $pool);