Przeglądaj źródła

git2svn: Use --add-author-from with "git set-tree"

Thomas Guyot-Sionnest 17 lat temu
rodzic
commit
3169745fa2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tools/git2svn.pl

+ 2 - 2
tools/git2svn.pl

@@ -114,8 +114,8 @@ if (@commits == 0) {
 # Finally, commit every revision found into SVN
 # Finally, commit every revision found into SVN
 foreach my $commit (@commits) {
 foreach my $commit (@commits) {
 	print "Commiting $commit to Subversion\n";
 	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 ($?);
 	die("Failed to commit hash $commit") if ($?);
 }
 }