{"thread":{"id":"25469","subject":"[PATCH] {cvs,svn}import: use the new 'git read-tree --empty'","startedAt":"2010-10-18T13:11:25Z","lastAt":"2010-10-18T13:11:25Z","messageCount":1,"participants":["Thomas Rast"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"153717","messageId":"ed4d2a5ba3f219dbaba501e9ae3701d5e96322a1.1287407371.git.trast@student.ethz.ch","threadId":"25469","inReplyTo":null,"subject":"[PATCH] {cvs,svn}import: use the new 'git read-tree --empty'","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2010-10-18T13:11:25Z","receivedAt":"2010-10-18T13:11:25Z","isPatch":true,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Since fb1bb96 (read-tree: deprecate syntax without tree-ish args,\n2010-09-10) not passing --empty caused a spurious warning that was\nshown to the user.\n\nSigned-off-by: Thomas Rast <trast@student.ethz.ch>\n---\n contrib/examples/git-svnimport.perl |    2 +-\n git-cvsimport.perl                  |    2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/contrib/examples/git-svnimport.perl b/contrib/examples/git-svnimport.perl\nindex ead4c04..b09ff8f 100755\n--- a/contrib/examples/git-svnimport.perl\n+++ b/contrib/examples/git-svnimport.perl\n@@ -289,7 +289,7 @@ my $current_rev = $opt_s || 1;\n unless(-d $git_dir) {\n \tsystem(\"git init\");\n \tdie \"Cannot init the GIT db at $git_tree: $?\\n\" if $?;\n-\tsystem(\"git read-tree\");\n+\tsystem(\"git read-tree --empty\");\n \tdie \"Cannot init an empty tree: $?\\n\" if $?;\n \n \t$last_branch = $opt_o;\ndiff --git a/git-cvsimport.perl b/git-cvsimport.perl\nindex 249aeaf..d27abfe 100755\n--- a/git-cvsimport.perl\n+++ b/git-cvsimport.perl\n@@ -612,7 +612,7 @@ my %index; # holds filenames of one index per branch\n unless (-d $git_dir) {\n \tsystem(qw(git init));\n \tdie \"Cannot init the GIT db at $git_tree: $?\\n\" if $?;\n-\tsystem(qw(git read-tree));\n+\tsystem(qw(git read-tree --empty));\n \tdie \"Cannot init an empty tree: $?\\n\" if $?;\n \n \t$last_branch = $opt_o;\n-- \n1.7.3.1.270.gbc760\n"}]}