summaryrefslogtreecommitdiff
path: root/contrib/examples
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2010-10-18 13:11:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-19 21:15:59 (GMT)
commit1bb28d87e1d8897db662f48455d369860758fbdd (patch)
treee8aaa30537c6a8cc4c2919ddcac183fc4b907cf5 /contrib/examples
parentc7deb8dac1f24498a353327ec9fceb99695582c2 (diff)
downloadgit-1bb28d87e1d8897db662f48455d369860758fbdd.zip
git-1bb28d87e1d8897db662f48455d369860758fbdd.tar.gz
git-1bb28d87e1d8897db662f48455d369860758fbdd.tar.bz2
{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 'contrib/examples')
-rwxr-xr-xcontrib/examples/git-svnimport.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/examples/git-svnimport.perl b/contrib/examples/git-svnimport.perl
index 4576c4a..6c4cab3 100755
--- a/contrib/examples/git-svnimport.perl
+++ b/contrib/examples/git-svnimport.perl
@@ -289,7 +289,7 @@ my $current_rev = $opt_s || 1;
unless(-d $git_dir) {
system("git init");
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
- system("git read-tree");
+ system("git read-tree --empty");
die "Cannot init an empty tree: $?\n" if $?;
$last_branch = $opt_o;