Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2010-10-18 17:11:25 +0400
committerJunio C Hamano <gitster@pobox.com>2010-10-20 01:15:59 +0400
commit1bb28d87e1d8897db662f48455d369860758fbdd (patch)
treee8aaa30537c6a8cc4c2919ddcac183fc4b907cf5 /git-cvsimport.perl
parentc7deb8dac1f24498a353327ec9fceb99695582c2 (diff)
{cvs,svn}import: use the new 'git read-tree --empty'
Since fb1bb96 (read-tree: deprecate syntax without tree-ish args, 2010-09-10) not passing --empty caused a spurious warning that was shown to the user. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 9e03eee458..7ab7bbc9ea 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -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;