summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-01-12 21:01:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-12 21:36:16 (GMT)
commit5c94f87e6b17cab5d3b87998d6c907745cb6f5a4 (patch)
tree814570782529656b1f5869525feadcc17996de9d /git-cvsimport.perl
parent120b0dfbed148461c4e1349d12a1b7913545260e (diff)
downloadgit-5c94f87e6b17cab5d3b87998d6c907745cb6f5a4.zip
git-5c94f87e6b17cab5d3b87998d6c907745cb6f5a4.tar.gz
git-5c94f87e6b17cab5d3b87998d6c907745cb6f5a4.tar.bz2
use 'init' instead of 'init-db' for shipped docs and tools
While 'init-db' still is and probably will always remain a valid git command for obvious backward compatibility reasons, it would be a good idea to move shipped tools and docs to using 'init' instead. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 1018f4f..35ef0c0 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -520,7 +520,7 @@ $orig_git_index = $ENV{GIT_INDEX_FILE} if exists $ENV{GIT_INDEX_FILE};
my %index; # holds filenames of one index per branch
unless (-d $git_dir) {
- system("git-init-db");
+ system("git-init");
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
system("git-read-tree");
die "Cannot init an empty tree: $?\n" if $?;
@@ -660,7 +660,7 @@ $ignorebranch{'#CVSPS_NO_BRANCH'} = 1;
sub commit {
if ($branch eq $opt_o && !$index{branch} && !get_headref($branch, $git_dir)) {
# looks like an initial commit
- # use the index primed by git-init-db
+ # use the index primed by git-init
$ENV{GIT_INDEX_FILE} = '.git/index';
$index{$branch} = '.git/index';
} else {