Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
{cvs,svn}import: use the new 'git read-tree --empty'
[gitweb.git]
/
git-cvsimport.perl
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index 9e03eee4586ca3b7476b56f66e9dcf6ffe3088cf..7ab7bbc9ea324021241c4f4779e66f320c7f0ed8 100755
(executable)
--- a/
git-cvsimport.perl
+++ b/
git-cvsimport.perl
@@
-611,7
+611,7
@@
sub munge_user_filename {
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;