summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7deb8d)
raw | patch | inline | side by side (parent: c7deb8d)
author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 18 Oct 2010 13:11:25 +0000 (15:11 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 19 Oct 2010 21:15:59 +0000 (14:15 -0700) |
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>
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>
contrib/examples/git-svnimport.perl | patch | blob | history | |
git-cvsimport.perl | patch | blob | history |
index 4576c4a862c8ea0565a67eccdae6ef1ac4d9af9a..6c4cab363361e0e87111984c3803f7ee29526c3d 100755 (executable)
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;
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 9e03eee4586ca3b7476b56f66e9dcf6ffe3088cf..7ab7bbc9ea324021241c4f4779e66f320c7f0ed8 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
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;