Code

{cvs,svn}import: use the new 'git read-tree --empty'
[git.git] / git-cvsimport.perl
index 9e03eee4586ca3b7476b56f66e9dcf6ffe3088cf..7ab7bbc9ea324021241c4f4779e66f320c7f0ed8 100755 (executable)
@@ -611,7 +611,7 @@ my %index; # holds filenames of one index per branch
 unless (-d $git_dir) {
        system(qw(git init));
        die "Cannot init the GIT db at $git_tree: $?\n" if $?;
-       system(qw(git read-tree));
+       system(qw(git read-tree --empty));
        die "Cannot init an empty tree: $?\n" if $?;
 
        $last_branch = $opt_o;