summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2008-01-14 04:51:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-14 05:48:22 (GMT)
commitcfc44a12fe94e4fa8433cc8e9d90db8d4edf89a7 (patch)
tree3f7fe5130315d51b97d1a879f2534a64d04b5b8b /git-cvsimport.perl
parent22fa97d4e011de82b44fdc83c27e919a996ce1be (diff)
downloadgit-cfc44a12fe94e4fa8433cc8e9d90db8d4edf89a7.zip
git-cfc44a12fe94e4fa8433cc8e9d90db8d4edf89a7.tar.gz
git-cfc44a12fe94e4fa8433cc8e9d90db8d4edf89a7.tar.bz2
cvsimport: remove last use of repo-config from git standard tools
git cvsimport was the last tool to use repo-config instead of config. Update it to use plain git config. Signed-off-by: Dan McGee <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 6d8ff93..5694978 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -88,7 +88,7 @@ sub write_author_info($) {
close ($f);
}
-# convert getopts specs for use by git-repo-config
+# convert getopts specs for use by git config
sub read_repo_config {
# Split the string between characters, unless there is a ':'
# So "abc:de" becomes ["a", "b", "c:", "d", "e"]
@@ -96,7 +96,7 @@ sub read_repo_config {
foreach my $o (@opts) {
my $key = $o;
$key =~ s/://g;
- my $arg = 'git-repo-config';
+ my $arg = 'git config';
$arg .= ' --bool' if ($o !~ /:$/);
chomp(my $tmp = `$arg --get cvsimport.$key`);
@@ -116,7 +116,7 @@ getopts($opts) or usage();
usage if $opt_h;
if (@ARGV == 0) {
- chomp(my $module = `git-repo-config --get cvsimport.module`);
+ chomp(my $module = `git config --get cvsimport.module`);
push(@ARGV, $module) if $? == 0;
}
@ARGV <= 1 or usage("You can't specify more than one CVS module");