import-trac: commit inside a doc/ directory (thanks to geofft again)
authorGreg Price <price@mit.edu>
Sun, 1 Feb 2009 07:27:11 +0000 (02:27 -0500)
committerGreg Price <price@mit.edu>
Sun, 1 Feb 2009 07:27:11 +0000 (02:27 -0500)
import-trac

index f82f34133e3bf2b6e6329aed8ada61d2515a2301..b86a5358686dea9abe707c8617d4013ef8000af5 100755 (executable)
@@ -34,12 +34,18 @@ foreach $row (@$rows) {
   waitpid $pid, 0;
 
   $pid = open2(OUT, IN, qw(git mktree));
-  print IN `git ls-tree $head | grep -v $row->{name}` if $head;
+  print IN `git ls-tree $head:doc | grep -v $row->{name}` if $head;
   print IN "100644 blob $blob\t$row->{name}\n";
   close(IN);
   chomp($tree = <OUT>);
   waitpid $pid, 0;
 
+  $pid = open2(OUT, IN, qw(git mktree));
+  print IN "040000 tree $tree\tdoc\n";
+  close(IN);
+  chomp($tree = <OUT>);
+  waitpid $pid, 0;
+
   $name = $authors{$row->{author}};
 
   $ENV{GIT_AUTHOR_NAME} = "$name";