Code

git2svn: Use --add-author-from with "git set-tree"
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Tue, 6 Jan 2009 05:49:16 +0000 (00:49 -0500)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Tue, 6 Jan 2009 05:49:16 +0000 (00:49 -0500)
tools/git2svn.pl

index c90ea96e91e418de3468386e3c30d7d7aeb453bb..afe2b3b3feaeaf138ff94768ec9eee8d849f46d6 100755 (executable)
@@ -114,8 +114,8 @@ if (@commits == 0) {
 # Finally, commit every revision found into SVN
 foreach my $commit (@commits) {
        print "Commiting $commit to Subversion\n";
-       print "Running: $git svn set-tree $commit\n"    if ($DEBUG);
-       `$git svn set-tree $commit`;
+       print "Running: $git svn set-tree --add-author-from $commit\n"  if ($DEBUG);
+       `$git svn set-tree --add-author-from $commit`;
        die("Failed to commit hash $commit") if ($?);
 }