Skip to content

Commit 1bb28d8

Browse files
trastgitster
authored andcommitted
{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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c7deb8d commit 1bb28d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/examples/git-svnimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ ($$)
289289
unless(-d $git_dir) {
290290
system("git init");
291291
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
292-
system("git read-tree");
292+
system("git read-tree --empty");
293293
die "Cannot init an empty tree: $?\n" if $?;
294294

295295
$last_branch = $opt_o;

git-cvsimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ sub munge_user_filename {
611611
unless (-d $git_dir) {
612612
system(qw(git init));
613613
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
614-
system(qw(git read-tree));
614+
system(qw(git read-tree --empty));
615615
die "Cannot init an empty tree: $?\n" if $?;
616616

617617
$last_branch = $opt_o;

0 commit comments

Comments
 (0)