Re: git svn --use-log-author misbehavior?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Fredrik Skolmli
Date: Friday, June 20, 2008 - 1:56 am

On Fri, Jun 20, 2008 at 12:51:39AM +0100, Mircea Bardac wrote:

Doesn't look like it. When you're using --add-author-from on dcommit, git-svn
doesn't seem to know that it should look after "From:" in the commit, thus
not setting the author correctly. The following oneliner should solve the
case. Please let me know if it works as well for you as it did for me.
 
Signed-off-by: Fredrik Skolmli <fredrik@frsk.net>
---
 git-svn.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index a54979d..8f77b91 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -432,6 +432,9 @@ sub cmd_dcommit {
 		     "without --no-rebase may be required."
 	}
 	while (1) {
+		if ($Git::SVN::_add_author_from) {
+			$Git::SVN::_use_log_author = 1;
+		}
 		my $d = shift @$linear_refs or last;
 		unless (defined $last_rev) {
 			(undef, $last_rev, undef) = cmt_metadata("$d~1");
-- 
1.5.6.6.gd3e97

-- 
Regards,
Fredrik Skolmli
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git svn --use-log-author misbehavior?, Mircea Bardac, (Thu Jun 19, 4:51 pm)
Re: git svn --use-log-author misbehavior?, Fredrik Skolmli, (Fri Jun 20, 1:56 am)
Re: git svn --use-log-author misbehavior?, Mircea Bardac, (Fri Jun 20, 3:13 am)
Re: git svn --use-log-author misbehavior?, Stephen R. van den Berg, (Fri Jun 20, 3:48 am)
Re: git svn --use-log-author misbehavior?, Fredrik Skolmli, (Fri Jun 20, 3:57 am)
Re: git svn --use-log-author misbehavior?, Mircea Bardac, (Fri Jun 20, 5:04 am)